[opaque pointer type] Add textual IR support for explicit type parameter to getelemen...
[oota-llvm.git] / test / Transforms / SLPVectorizer / X86 / rgb_phi.ll
index 6aea5d3c6f6bd5b298de67330d8770338342c070..2a3cc6dc40f492b9a5695293df987afa5a90a067 100644 (file)
@@ -34,9 +34,9 @@ target triple = "i386-apple-macosx10.9.0"
 define float @foo(float* nocapture readonly %A) {
 entry:
   %0 = load float* %A, align 4
-  %arrayidx1 = getelementptr inbounds float* %A, i64 1
+  %arrayidx1 = getelementptr inbounds float, float* %A, i64 1
   %1 = load float* %arrayidx1, align 4
-  %arrayidx2 = getelementptr inbounds float* %A, i64 2
+  %arrayidx2 = getelementptr inbounds float, float* %A, i64 2
   %2 = load float* %arrayidx2, align 4
   br label %for.body
 
@@ -49,12 +49,12 @@ for.body:                                         ; preds = %for.body.for.body_c
   %mul = fmul float %3, 7.000000e+00
   %add4 = fadd float %R.030, %mul
   %4 = add nsw i64 %indvars.iv, 1
-  %arrayidx7 = getelementptr inbounds float* %A, i64 %4
+  %arrayidx7 = getelementptr inbounds float, float* %A, i64 %4
   %5 = load float* %arrayidx7, align 4
   %mul8 = fmul float %5, 8.000000e+00
   %add9 = fadd float %G.031, %mul8
   %6 = add nsw i64 %indvars.iv, 2
-  %arrayidx12 = getelementptr inbounds float* %A, i64 %6
+  %arrayidx12 = getelementptr inbounds float, float* %A, i64 %6
   %7 = load float* %arrayidx12, align 4
   %mul13 = fmul float %7, 9.000000e+00
   %add14 = fadd float %B.032, %mul13
@@ -64,7 +64,7 @@ for.body:                                         ; preds = %for.body.for.body_c
   br i1 %cmp, label %for.body.for.body_crit_edge, label %for.end
 
 for.body.for.body_crit_edge:                      ; preds = %for.body
-  %arrayidx3.phi.trans.insert = getelementptr inbounds float* %A, i64 %indvars.iv.next
+  %arrayidx3.phi.trans.insert = getelementptr inbounds float, float* %A, i64 %indvars.iv.next
   %.pre = load float* %arrayidx3.phi.trans.insert, align 4
   br label %for.body