gnu_mcount_nc.ll
2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
; RUN: llc -mtriple=armv7a-linux-gnueabihf -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK-ARM
; RUN: llc -mtriple=armv7a-linux-gnueabihf -verify-machineinstrs -fast-isel %s -o - | FileCheck %s --check-prefix=CHECK-ARM-FAST-ISEL
; RUN: llc -mtriple=armv7a-linux-gnueabihf -verify-machineinstrs -global-isel -global-isel-abort=2 %s -o - | FileCheck %s --check-prefix=CHECK-ARM-GLOBAL-ISEL
; RUN: llc -mtriple=thumbv7a-linux-gnueabihf -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK-THUMB
; RUN: llc -mtriple=thumbv7a-linux-gnueabihf -verify-machineinstrs -fast-isel %s -o - | FileCheck %s --check-prefix=CHECK-THUMB-FAST-ISEL
; RUN: llc -mtriple=thumbv7a-linux-gnueabihf -verify-machineinstrs -global-isel -global-isel-abort=2 %s -o - | FileCheck %s --check-prefix=CHECK-THUMB-GLOBAL-ISEL
define dso_local void @callee() #0 {
; CHECK-ARM: stmdb sp!, {lr}
; CHECK-ARM-NEXT: bl __gnu_mcount_nc
; CHECK-ARM-FAST-ISEL: stmdb sp!, {lr}
; CHECK-ARM-FAST-ISEL-NEXT: bl __gnu_mcount_nc
; CHECK-ARM-GLOBAL-ISEL: stmdb sp!, {lr}
; CHECK-ARM-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc
; CHECK-THUMB: push {lr}
; CHECK-THUMB-NEXT: bl __gnu_mcount_nc
; CHECK-THUMB-FAST-ISEL: push {lr}
; CHECK-THUMB-FAST-ISEL-NEXT: bl __gnu_mcount_nc
; CHECK-THUMB-GLOBAL-ISEL: push {lr}
; CHECK-THUMB-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc
ret void
}
define dso_local void @caller() #0 {
; CHECK-ARM: stmdb sp!, {lr}
; CHECK-ARM-NEXT: bl __gnu_mcount_nc
; CHECK-ARM-FAST-ISEL: stmdb sp!, {lr}
; CHECK-ARM-FAST-ISEL-NEXT: bl __gnu_mcount_nc
; CHECK-ARM-GLOBAL-ISEL: stmdb sp!, {lr}
; CHECK-ARM-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc
; CHECK-THUMB: push {lr}
; CHECK-THUMB-NEXT: bl __gnu_mcount_nc
; CHECK-THUMB-FAST-ISEL: push {lr}
; CHECK-THUMB-FAST-ISEL-NEXT: bl __gnu_mcount_nc
; CHECK-THUMB-GLOBAL-ISEL: push {lr}
; CHECK-THUMB-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc
call void @callee()
ret void
}
attributes #0 = { nofree nounwind "instrument-function-entry-inlined"="llvm.arm.gnu.eabi.mcount" }