1 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 | FileCheck %s -check-prefix=ASM
3 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+o32 -filetype=obj -o -| \
4 # RUN: llvm-objdump -d -r -arch=mips - | \
5 # RUN: FileCheck %s -check-prefix=OBJ-O32
7 # RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -target-abi n32 -filetype=obj -o -| \
8 # RUN: llvm-objdump -d -r -arch=mips - | \
9 # RUN: FileCheck %s -check-prefix=OBJ-N32
11 # RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -mattr=+n64 -filetype=obj -o -| \
12 # RUN: llvm-objdump -d -r -arch=mips - | \
13 # RUN: FileCheck %s -check-prefix=OBJ-N64
23 # OBJ-O32: R_MIPS_HI16 _gp_disp
24 # OBJ-O32: addiu $gp, $gp, 0
25 # OBJ-O32: R_MIPS_LO16 _gp_disp
26 # OBJ-O32: addu $gp, $gp, $25
29 # OBJ-N32-NOT: lui $gp, 0
30 # OBJ-N32-NOT: addiu $gp, $gp, 0
31 # OBJ-N32-NOT: addu $gp, $gp, $25
34 # OBJ-N64-NOT: lui $gp, 0
35 # OBJ-N64-NOT: addiu $gp, $gp, 0
36 # OBJ-N64-NOT: addu $gp, $gp, $25