CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / fastcc-byval.ll
index e6828e42827c5268e7d4add2812828e97734660c..1706de461116fe77fef596c25966cf6993658f87 100644 (file)
@@ -14,10 +14,10 @@ target triple = "i386-apple-darwin9.5"
 
 define fastcc i32 @bar() nounwind {
        %V = alloca %struct.MVT
-       %a = getelementptr %struct.MVT* %V, i32 0, i32 0
+       %a = getelementptr %struct.MVT, %struct.MVT* %V, i32 0, i32 0
        store i32 1, i32* %a
        call fastcc void @foo(%struct.MVT* byval %V) nounwind
-       %t = load i32* %a
+       %t = load i32, i32* %a
        ret i32 %t
 }