1# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 | FileCheck %s -check-prefix=ASM 2# 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 6 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 10 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 14 15# ASM: .text 16# ASM: .option pic2 17# ASM: .set noreorder 18# ASM: .cpload $25 19# ASM: .set reorder 20 21# OBJ-O32: .text 22# OBJ-O32: lui $gp, 0 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 27 28# OBJ-N32-NOT: .text 29# OBJ-N32-NOT: lui $gp, 0 30# OBJ-N32-NOT: addiu $gp, $gp, 0 31# OBJ-N32-NOT: addu $gp, $gp, $25 32 33# OBJ-N64-NOT: .text 34# OBJ-N64-NOT: lui $gp, 0 35# OBJ-N64-NOT: addiu $gp, $gp, 0 36# OBJ-N64-NOT: addu $gp, $gp, $25 37 38 .text 39 .option pic2 40 .set noreorder 41 .cpload $25 42 .set reorder 43