[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / Transforms / InstCombine / select-cmp-br.ll
index f10d58783a770bc14d1ad5864b844570a6cd638a..c4086cd8a2cae3b0eddd08738d25bef4414982c5 100644 (file)
@@ -9,11 +9,11 @@ declare void @foobar()
 
 define void @test1(%C*) {
 entry:
-  %1 = getelementptr inbounds %C* %0, i64 0, i32 0, i32 0
+  %1 = getelementptr inbounds %C, %C* %0, i64 0, i32 0, i32 0
   %m = load i64** %1, align 8
-  %2 = getelementptr inbounds %C* %0, i64 1, i32 0, i32 0
+  %2 = getelementptr inbounds %C, %C* %0, i64 1, i32 0, i32 0
   %n = load i64** %2, align 8
-  %3 = getelementptr inbounds i64* %m, i64 9
+  %3 = getelementptr inbounds i64, i64* %m, i64 9
   %4 = bitcast i64* %3 to i64 (%C*)**
   %5 = load i64 (%C*)** %4, align 8
   %6 = icmp eq i64* %m, %n
@@ -25,7 +25,7 @@ entry:
   ret void
 
 ; <label>:10                                      ; preds = %entry
-  %11 = getelementptr inbounds %C* %7, i64 0, i32 0
+  %11 = getelementptr inbounds %C, %C* %7, i64 0, i32 0
   tail call void @bar(%struct.S* %11)
   br label %9
 
@@ -40,11 +40,11 @@ entry:
 
 define void @test2(%C*) {
 entry:
-  %1 = getelementptr inbounds %C* %0, i64 0, i32 0, i32 0
+  %1 = getelementptr inbounds %C, %C* %0, i64 0, i32 0, i32 0
   %m = load i64** %1, align 8
-  %2 = getelementptr inbounds %C* %0, i64 1, i32 0, i32 0
+  %2 = getelementptr inbounds %C, %C* %0, i64 1, i32 0, i32 0
   %n = load i64** %2, align 8
-  %3 = getelementptr inbounds i64* %m, i64 9
+  %3 = getelementptr inbounds i64, i64* %m, i64 9
   %4 = bitcast i64* %3 to i64 (%C*)**
   %5 = load i64 (%C*)** %4, align 8
   %6 = icmp eq i64* %m, %n
@@ -56,7 +56,7 @@ entry:
   ret void
 
 ; <label>:10                                      ; preds = %entry
-  %11 = getelementptr inbounds %C* %7, i64 0, i32 0
+  %11 = getelementptr inbounds %C, %C* %7, i64 0, i32 0
   tail call void @bar(%struct.S* %11)
   br label %9
 
@@ -71,11 +71,11 @@ entry:
 
 define void @test3(%C*) {
 entry:
-  %1 = getelementptr inbounds %C* %0, i64 0, i32 0, i32 0
+  %1 = getelementptr inbounds %C, %C* %0, i64 0, i32 0, i32 0
   %m = load i64** %1, align 8
-  %2 = getelementptr inbounds %C* %0, i64 1, i32 0, i32 0
+  %2 = getelementptr inbounds %C, %C* %0, i64 1, i32 0, i32 0
   %n = load i64** %2, align 8
-  %3 = getelementptr inbounds i64* %m, i64 9
+  %3 = getelementptr inbounds i64, i64* %m, i64 9
   %4 = bitcast i64* %3 to i64 (%C*)**
   %5 = load i64 (%C*)** %4, align 8
   %6 = icmp eq i64* %m, %n
@@ -87,7 +87,7 @@ entry:
   ret void
 
 ; <label>:10                                      ; preds = %entry
-  %11 = getelementptr inbounds %C* %7, i64 0, i32 0
+  %11 = getelementptr inbounds %C, %C* %7, i64 0, i32 0
   tail call void @bar(%struct.S* %11)
   br label %9
 
@@ -102,11 +102,11 @@ entry:
 
 define void @test4(%C*) {
 entry:
-  %1 = getelementptr inbounds %C* %0, i64 0, i32 0, i32 0
+  %1 = getelementptr inbounds %C, %C* %0, i64 0, i32 0, i32 0
   %m = load i64** %1, align 8
-  %2 = getelementptr inbounds %C* %0, i64 1, i32 0, i32 0
+  %2 = getelementptr inbounds %C, %C* %0, i64 1, i32 0, i32 0
   %n = load i64** %2, align 8
-  %3 = getelementptr inbounds i64* %m, i64 9
+  %3 = getelementptr inbounds i64, i64* %m, i64 9
   %4 = bitcast i64* %3 to i64 (%C*)**
   %5 = load i64 (%C*)** %4, align 8
   %6 = icmp eq i64* %m, %n
@@ -118,7 +118,7 @@ entry:
   ret void
 
 ; <label>:10                                      ; preds = %entry
-  %11 = getelementptr inbounds %C* %7, i64 0, i32 0
+  %11 = getelementptr inbounds %C, %C* %7, i64 0, i32 0
   tail call void @bar(%struct.S* %11)
   br label %9
 
@@ -141,7 +141,7 @@ entry:
   ret void
 
 ; <label>:5                                      ; preds = %entry
-  %6 = getelementptr inbounds %C* %2, i64 0, i32 0
+  %6 = getelementptr inbounds %C, %C* %2, i64 0, i32 0
   tail call void @bar(%struct.S* %6)
   br label %4