1 ; RUN: llc -march=mips -target-abi o32 --mattr=+long-calls,+noabicalls < %s \
2 ; RUN: -mips-jalr-reloc=false | FileCheck -check-prefix=O32 %s
3 ; RUN: llc -march=mips -target-abi o32 --mattr=-long-calls,+noabicalls < %s \
4 ; RUN: -mips-jalr-reloc=false | FileCheck -check-prefix=O32 %s
5 ; RUN: llc -march=mips64 -target-abi n64 --mattr=+long-calls,+noabicalls < %s \
6 ; RUN: -mips-jalr-reloc=false | FileCheck -check-prefix=N64 %s
7 ; RUN: llc -march=mips64 -target-abi n64 --mattr=-long-calls,+noabicalls < %s \
8 ; RUN: -mips-jalr-reloc=false | FileCheck -check-prefix=N64 %s
10 declare void @far() #0
12 define void @near() #1 {
20 ; O32: lui $1, %hi(far)
21 ; O32-NEXT: addiu $25, $1, %lo(far)
25 ; N64: lui $1, %highest(far)
26 ; N64-NEXT: daddiu $1, $1, %higher(far)
27 ; N64-NEXT: dsll $1, $1, 16
28 ; N64-NEXT: daddiu $1, $1, %hi(far)
29 ; N64-NEXT: dsll $1, $1, 16
30 ; N64-NEXT: daddiu $25, $1, %lo(far)
41 attributes #0 = { "long-call" }
42 attributes #1 = { "short-call" }