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 - | FileCheck %s -check-prefix=OBJ-O32 5 6# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -target-abi n32 -filetype=obj -o -| \ 7# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N32 8 9# RUN: llvm-mc %s -arch=mips64 -mcpu=mips64r2 -filetype=obj -o -| \ 10# RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N64 11 12# ASM: .text 13# ASM: .option pic2 14# ASM: .set noreorder 15# ASM: .cpload $25 16# ASM: .set reorder 17 18# OBJ-O32: .text 19# OBJ-O32: lui $gp, 0 20# OBJ-O32: R_MIPS_HI16 _gp_disp 21# OBJ-O32: addiu $gp, $gp, 0 22# OBJ-O32: R_MIPS_LO16 _gp_disp 23# OBJ-O32: addu $gp, $gp, $25 24 25# OBJ-N32-NOT: .text 26# OBJ-N32-NOT: lui $gp, 0 27# OBJ-N32-NOT: addiu $gp, $gp, 0 28# OBJ-N32-NOT: addu $gp, $gp, $25 29 30# OBJ-N64-NOT: .text 31# OBJ-N64-NOT: lui $gp, 0 32# OBJ-N64-NOT: addiu $gp, $gp, 0 33# OBJ-N64-NOT: addu $gp, $gp, $25 34 35 .text 36 .option pic2 37 .set noreorder 38 .cpload $25 39 .set reorder 40