OSDN Git Service

[MIPS GlobalISel] Select global address
[android-x86/external-llvm.git] / test / CodeGen / Mips / long-call-mcount.ll
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
8 define void @foo() #0 {
9 entry:
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
19 attributes #0 = { "instrument-function-entry-inlined"="_mcount" }