; Check call to mcount in case of long/short call options.
; RUN: llc -march=mips -target-abi o32 --mattr=+long-calls,+noabicalls < %s \
; RUN:   | FileCheck -check-prefixes=CHECK,LONG %s
; RUN: llc -march=mips -target-abi o32 --mattr=-long-calls,+noabicalls < %s \
; RUN:   | FileCheck -check-prefixes=CHECK,SHORT %s

; Function Attrs: noinline nounwind optnone
define void @foo() #0 {
entry:
  ret void

; CHECK-LABEL: foo
; LONG:          lui     $1, %hi(_mcount)
; LONG-NEXT:     addiu   $25, $1, %lo(_mcount)
; LONG-NEXT:     jalr    $25
; SHORT:         jal     _mcount
}

attributes #0 = { "instrument-function-entry-inlined"="_mcount" }

Add test case to check that calls to mcount follow long calls / short calls options. NFC
[mips] Add test case to check that calls to mcount follow long calls / short calls options. NFC

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@321357 91177308-0d34-0410-b5e6-96231b3b80d8
