have dag combine zap "store undef", which can be formed during call lowering
[oota-llvm.git] / test / CodeGen / X86 / call-push.ll
index 02cbccc1a492fd5eb35dee893f310aded047f4f7..7eac522d1f8e340a4e6b50e4d2c1f233a4a44570 100644 (file)
@@ -27,3 +27,18 @@ UnifiedReturnBlock:             ; preds = %entry
 }
 
 declare i32 @f(%struct.decode_t*)
+
+
+; There should be no store for the undef operand.
+
+; CHECK: _test2:
+; CHECK-NOT: 8(%esp)
+; CHECK: 4(%esp)
+; CHECK: calll 
+declare i32 @foo(i32, i32, i32)
+
+define void @test2() nounwind {
+entry:
+  %call = call i32 @foo(i32 8, i32 6, i32 undef)
+  ret void
+}