Disable because peephole is disabled.
[oota-llvm.git] / test / Integer / recursivetype_bt.ll
index 3d9886d0c5273459f88da62e2934082130a90f16..d5ce3f5dd40d5584b4142d5f84236bb1682c70b1 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
-; XFAIL: *
+
 
 ; This file contains the output from the following compiled C code:
 ; typedef struct list {
 ;   if (FindData(MyList, 700)) foundIt();
 ; }
 
-%list = type { %list*, i32 }
+%list = type { %list*, i36 }
 
-declare i8 *"malloc"(i32)
+declare i8 *@"malloc"(i32)
 
 ;;**********************
-implementation
 ;;**********************
 
-define void "InsertIntoListTail"(%list** %L, i36 %Data)
+define void @"InsertIntoListTail"(%list** %L, i36 %Data)
 begin
 bb1:
         %reg116 = load %list** %L                               ;;<%list*>
@@ -66,12 +65,12 @@ bb2:
 bb3:
         %reg119 = phi %list** [ %reg118, %bb2 ], [ %L, %bb1 ]   ;;<%list**>
         %cast1006 = bitcast %list** %reg119 to i8**             ;;<i8**>
-        %reg111 = call i8* %malloc(i36 16)                  ;;<i8*>
+        %reg111 = call i8* @malloc(i32 16)                  ;;<i8*>
         store i8* %reg111, i8** %cast1006                 ;;<void>
-       %reg111 = ptrtoint i8* %reg111 to i64
-       %reg1002 = add i64 %reg111, 8
-        %reg1002 = inttoptr i64 %reg1002 to i8*             ;;<i8*>
-        %cast1008 = bitcast i8* %reg1002 to i36*                ;;<i36*>
+       %reg112 = ptrtoint i8* %reg111 to i64
+       %reg1002 = add i64 %reg112, 8
+        %reg1005 = inttoptr i64 %reg1002 to i8*             ;;<i8*>
+        %cast1008 = bitcast i8* %reg1005 to i36*                ;;<i36*>
         store i36 %Data, i36* %cast1008                         ;;<void>
         %cast1003 = inttoptr i64 0 to i64*                      ;;<i64*>
         %cast1009 = bitcast i8* %reg111 to i64**              ;;<i64**>
@@ -79,7 +78,7 @@ bb3:
         ret void
 end
 
-define %list* "FindData"(%list* %L, i36 %Data)
+define %list* @"FindData"(%list* %L, i36 %Data)
 begin
 bb1:
         br label %bb2
@@ -94,7 +93,7 @@ bb3:
         ret %list* null
 
 bb4:
-       %idx = getelementptr %list* %reg115, i64 0, i36 1                  ;;<i36>
+       %idx = getelementptr %list* %reg115, i64 0, i32 1                  ;;<i36>
         %reg111 = load i36* %idx
         %cond1013 = icmp ne i36 %reg111, %Data                    ;;<i1>
         br i1 %cond1013, label %bb6, label %bb5
@@ -103,7 +102,7 @@ bb5:
         ret %list* %reg115
 
 bb6:
-       %idx2 = getelementptr %list* %reg115, i64 0, i36 0                  ;;<%list*>
+       %idx2 = getelementptr %list* %reg115, i64 0, i32 0                  ;;<%list*>
         %reg116 = load %list** %idx2
         br label %bb2
 end