blob: 4baa294fb88d3681e3e389637a0bdbe9e7760107 [file] [log] [blame]
Bill Wendlinge9bf7e62010-07-15 23:32:40 +00001; RUN: llc < %s -march=x86 | FileCheck -check-prefix=NO-FP %s
2; RUN: llc < %s -march=x86 -disable-fp-elim | FileCheck -check-prefix=FP %s
Chris Lattner7cf9abf2008-01-29 06:26:07 +00003target triple = "i686-apple-darwin8"
4
Bill Wendlinge9bf7e62010-07-15 23:32:40 +00005define void @func1() noreturn nounwind {
Bill Wendling824a7212008-01-26 09:03:52 +00006entry:
Bill Wendlinge9bf7e62010-07-15 23:32:40 +00007; NO-FP: ud2
8 unreachable
9}
10
11define void @func2() noreturn nounwind {
12entry:
13; FP: pushl %ebp
14; FP: movl %esp, %ebp
15; FP: ud2
Bill Wendling824a7212008-01-26 09:03:52 +000016 unreachable
17}