CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / v4i32load-crash.ll
index 2025a2f872d493160971e7009122dc8c07f16490..8d019bc43d6b992fc111753731c1c83a3aed79a8 100644 (file)
 ; Function Attrs: nounwind
 define void @fn3(i32 %el) {
 entry:
-  %0 = load i32, i32* getelementptr inbounds ([4 x i32]* @e, i32 0, i32 0)
-  %1 = load i32, i32* getelementptr inbounds ([4 x i32]* @e, i32 0, i32 1)
-  %2 = load i32, i32* getelementptr inbounds ([4 x i32]* @e, i32 0, i32 2)
-  %3 = load i32, i32* getelementptr inbounds ([4 x i32]* @e, i32 0, i32 3)
+  %0 = load i32, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @e, i32 0, i32 0)
+  %1 = load i32, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @e, i32 0, i32 1)
+  %2 = load i32, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @e, i32 0, i32 2)
+  %3 = load i32, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @e, i32 0, i32 3)
   %4 = insertelement <4 x i32> undef, i32 %0, i32 0
   %5 = insertelement <4 x i32> %4, i32 %1, i32 1
   %6 = insertelement <4 x i32> %5, i32 %2, i32 2