| Bill Wendling | e9bf7e6 | 2010-07-15 23:32:40 +0000 | [diff] [blame^] | 1 | ; 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 Lattner | 7cf9abf | 2008-01-29 06:26:07 +0000 | [diff] [blame] | 3 | target triple = "i686-apple-darwin8" |
| 4 | |
| Bill Wendling | e9bf7e6 | 2010-07-15 23:32:40 +0000 | [diff] [blame^] | 5 | define void @func1() noreturn nounwind { |
| Bill Wendling | 824a721 | 2008-01-26 09:03:52 +0000 | [diff] [blame] | 6 | entry: |
| Bill Wendling | e9bf7e6 | 2010-07-15 23:32:40 +0000 | [diff] [blame^] | 7 | ; NO-FP: ud2 |
| 8 | unreachable |
| 9 | } |
| 10 | |
| 11 | define void @func2() noreturn nounwind { |
| 12 | entry: |
| 13 | ; FP: pushl %ebp |
| 14 | ; FP: movl %esp, %ebp |
| 15 | ; FP: ud2 |
| Bill Wendling | 824a721 | 2008-01-26 09:03:52 +0000 | [diff] [blame] | 16 | unreachable |
| 17 | } |