CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / trunc-to-bool.ll
index 0ed634774ab3a2b0e1f5bf795b2be5874ddb2622..3dd98eea7fa998ec7896be8aabd0f30763116d94 100644 (file)
@@ -25,7 +25,7 @@ ret_false:
 ; CHECK: btl
 
 define i32 @test3(i8* %ptr) nounwind {
-    %val = load i8* %ptr
+    %val = load i8, i8* %ptr
     %tmp = trunc i8 %val to i1
     br i1 %tmp, label %cond_true, label %cond_false
 cond_true: