• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Check call to mcount in case of long/short call options.
2; RUN: llc -march=mips -target-abi o32 --mattr=+long-calls,+noabicalls < %s \
3; RUN:   | FileCheck -check-prefixes=CHECK,LONG %s
4; RUN: llc -march=mips -target-abi o32 --mattr=-long-calls,+noabicalls < %s \
5; RUN:   | FileCheck -check-prefixes=CHECK,SHORT %s
6
7; Function Attrs: noinline nounwind optnone
8define void @foo() #0 {
9entry:
10  ret void
11
12; CHECK-LABEL: foo
13; LONG:          lui     $1, %hi(_mcount)
14; LONG-NEXT:     addiu   $25, $1, %lo(_mcount)
15; LONG-NEXT:     jalr    $25
16; SHORT:         jal     _mcount
17}
18
19attributes #0 = { "instrument-function-entry-inlined"="_mcount" }
20