20 lines · plain
1; Check call to mcount in case of long/short call options.2; RUN: llc -mtriple=mips -target-abi o32 --mattr=+long-calls,+noabicalls < %s \3; RUN: -mips-jalr-reloc=false | FileCheck -check-prefixes=CHECK,LONG %s4; RUN: llc -mtriple=mips -target-abi o32 --mattr=-long-calls,+noabicalls < %s \5; RUN: -mips-jalr-reloc=false | FileCheck -check-prefixes=CHECK,SHORT %s6 7define void @foo() {8entry:9 call void @_mcount()10 ret void11 12; CHECK-LABEL: foo13; LONG: lui $1, %hi(_mcount)14; LONG-NEXT: addiu $25, $1, %lo(_mcount)15; LONG-NEXT: jalr $2516; SHORT: jal _mcount17}18 19declare void @_mcount()20