X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2F2008-01-25-EmptyFunction.ll;h=4baa294fb88d3681e3e389637a0bdbe9e7760107;hb=e9bf7e692e56656ef13b33af86624d0fdcd578fb;hp=b936686798f03121bec85a109992231a66fa44de;hpb=60108e96bbc5432f4fe06ba313e64448e97a0e15;p=oota-llvm.git diff --git a/test/CodeGen/X86/2008-01-25-EmptyFunction.ll b/test/CodeGen/X86/2008-01-25-EmptyFunction.ll index b936686798f..4baa294fb88 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 }