Add a test for the MachineCopyPropagation change landed in r238518.
[oota-llvm.git] / test / CodeGen / X86 / crash-O0.ll
index df8eaaf442b7709a6fb15c62f14ed836902327aa..dab15c19c69ed9e349730c2f0a954e8e37ffd915 100644 (file)
@@ -44,8 +44,8 @@ entry:
 ; CHECK-NEXT: idivq
 ; CHECK: retq
 define i64 @addressModeWith32bitIndex(i32 %V) {
-  %gep = getelementptr i64* null, i32 %V
-  %load = load i64* %gep
+  %gep = getelementptr i64, i64* null, i32 %V
+  %load = load i64, i64* %gep
   %sdiv = sdiv i64 0, %load
   ret i64 %sdiv
 }