1 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 | FileCheck %s -check-prefix=ASM 2 # 3 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o -| \ 4 # RUN: llvm-objdump -d -r -arch=mips - | \ 5 # RUN: FileCheck %s -check-prefix=OBJ 6 7 # RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -filetype=obj -o -| \ 8 # RUN: llvm-objdump -d -r -arch=mips - | \ 9 # RUN: FileCheck %s -check-prefix=OBJ64 10 11 # ASM: .text 12 # ASM: .option pic2 13 # ASM: .set noreorder 14 # ASM: .cpload $25 15 # ASM: .set reorder 16 17 # OBJ: .text 18 # OBJ: lui $gp, 0 19 # OBJ: R_MIPS_HI16 _gp_disp 20 # OBJ: addiu $gp, $gp, 0 21 # OBJ: R_MIPS_LO16 _gp_disp 22 # OBJ: addu $gp, $gp, $25 23 24 # OBJ64: .text 25 # OBJ64-NOT: lui $gp, 0 26 # OBJ64-NOT: addiu $gp, $gp, 0 27 # OBJ64-NOT: addu $gp, $gp, $25 28 29 .text 30 .option pic2 31 .set noreorder 32 .cpload $25 33 .set reorder 34