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