aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-01-25-EmptyFunction.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2008-01-25-EmptyFunction.ll')
-rw-r--r--test/CodeGen/X86/2008-01-25-EmptyFunction.ll13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/CodeGen/X86/2008-01-25-EmptyFunction.ll b/test/CodeGen/X86/2008-01-25-EmptyFunction.ll
index b936686798..4baa294fb8 100644
--- a/test/CodeGen/X86/2008-01-25-EmptyFunction.ll
+++ b/test/CodeGen/X86/2008-01-25-EmptyFunction.ll
@@ -1,8 +1,17 @@
-; RUN: llc < %s -march=x86 | grep nop
+; RUN: llc < %s -march=x86 | FileCheck -check-prefix=NO-FP %s
+; RUN: llc < %s -march=x86 -disable-fp-elim | FileCheck -check-prefix=FP %s
target triple = "i686-apple-darwin8"
+define void @func1() noreturn nounwind {
+entry:
+; NO-FP: ud2
+ unreachable
+}
-define void @bork() noreturn nounwind {
+define void @func2() noreturn nounwind {
entry:
+; FP: pushl %ebp
+; FP: movl %esp, %ebp
+; FP: ud2
unreachable
}