[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / Mips / cpload.s
blob2c09fa2bbeca09e90b4ad9b37670c50a6e6634df
1 # RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 \
2 # RUN: | FileCheck %s -check-prefix=ASM
4 # RUN: llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32r2 \
5 # RUN: -filetype=obj -o - \
6 # RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-O32
8 # RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -mcpu=mips64r2 \
9 # RUN: -filetype=obj -o - \
10 # RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N32
12 # RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -mcpu=mips64r2 \
13 # RUN: -filetype=obj -o - \
14 # RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-N64
16 # ASM: .text
17 # ASM: .option pic2
18 # ASM: .set noreorder
19 # ASM: .cpload $25
20 # ASM: .set reorder
22 # OBJ-O32: .text
23 # OBJ-O32: lui $gp, 0
24 # OBJ-O32: R_MIPS_HI16 _gp_disp
25 # OBJ-O32: addiu $gp, $gp, 0
26 # OBJ-O32: R_MIPS_LO16 _gp_disp
27 # OBJ-O32: addu $gp, $gp, $25
29 # OBJ-N32-NOT: .text
30 # OBJ-N32-NOT: lui $gp, 0
31 # OBJ-N32-NOT: addiu $gp, $gp, 0
32 # OBJ-N32-NOT: addu $gp, $gp, $25
34 # OBJ-N64-NOT: .text
35 # OBJ-N64-NOT: lui $gp, 0
36 # OBJ-N64-NOT: addiu $gp, $gp, 0
37 # OBJ-N64-NOT: addu $gp, $gp, $25
39 .text
40 .option pic2
41 .set noreorder
42 .cpload $25
43 .set reorder