summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2008-01-25-EmptyFunction.ll
blob: 4baa294fb88d3681e3e389637a0bdbe9e7760107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; 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 @func2() noreturn nounwind  {
entry:
; FP: pushl %ebp
; FP: movl %esp, %ebp
; FP: ud2
        unreachable
}