aboutsummaryrefslogtreecommitdiff
path: root/test/MC/MachO/ARM/empty-function-nop.ll
blob: 0bc439497e2c40c1ec29471768756308deb10bf2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; RUN: llc < %s -filetype=obj -mtriple=thumbv6-apple-darwin -o - | llvm-readobj -s -sd | FileCheck -check-prefix=CHECK-T1 %s
; RUN: llc < %s -filetype=obj -mtriple=thumbv7-apple-darwin -o - | llvm-readobj -s -sd | FileCheck -check-prefix=CHECK-T2 %s
; RUN: llc < %s -filetype=obj -mtriple=armv6-apple-darwin -o - | llvm-readobj -s -sd | FileCheck -check-prefix=CHECK-ARM %s
; RUN: llc < %s -filetype=obj -mtriple=armv7-apple-darwin -o - | llvm-readobj -s -sd | FileCheck -check-prefix=CHECK-ARMV7 %s

; Empty functions need a NOP in them for MachO to prevent DWARF FDEs from
; getting all mucked up. See lib/CodeGen/AsmPrinter/AsmPrinter.cpp for
; details.
define internal fastcc void @empty_function() {
  unreachable
}
; CHECK-T1:    SectionData (
; CHECK-T1:      0000: C046                                 |.F|
; CHECK-T1:    )
; CHECK-T2:    SectionData (
; CHECK-T2:      0000: 00BF                                 |..|
; CHECK-T2:    )
; CHECK-ARM:   SectionData (
; CHECK-ARM:     0000: 0000A0E1                             |....|
; CHECK-ARM:   )
; CHECK-ARMV7: SectionData (
; CHECK-ARMV7:   0000: 00F020E3                             |.. .|
; CHECK-ARMV7: )