[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / Mips / macro-dla-pic.s
blobed5aa202618efe0e7cc42741161fbf0b003b34dc
1 # RUN: llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips3 | \
2 # RUN: FileCheck %s
4 .option pic2
5 dla $5, symbol # CHECK: ld $5, %got_disp(symbol)($gp) # encoding: [0xdf,0x85,A,A]
6 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
7 dla $5, symbol($6) # CHECK: ld $5, %got_disp(symbol)($gp) # encoding: [0xdf,0x85,A,A]
8 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
9 # CHECK: daddu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x2d]
10 dla $6, symbol($6) # CHECK: ld $1, %got_disp(symbol)($gp) # encoding: [0xdf,0x81,A,A]
11 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
12 # CHECK: daddu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x2d]
13 dla $5, symbol+8 # CHECK: ld $5, %got_disp(symbol)($gp) # encoding: [0xdf,0x85,A,A]
14 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
15 # CHECK: daddiu $5, $5, 8 # encoding: [0x64,0xa5,0x00,0x08]
16 dla $5, symbol+8($6) # CHECK: ld $5, %got_disp(symbol)($gp) # encoding: [0xdf,0x85,A,A]
17 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
18 # CHECK: daddiu $5, $5, 8 # encoding: [0x64,0xa5,0x00,0x08]
19 # CHECK: daddu $5, $5, $6 # encoding: [0x00,0xa6,0x28,0x2d]
20 dla $6, symbol+8($6) # CHECK: ld $1, %got_disp(symbol)($gp) # encoding: [0xdf,0x81,A,A]
21 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
22 # CHECK: daddiu $1, $1, 8 # encoding: [0x64,0x21,0x00,0x08]
23 # CHECK: daddu $6, $1, $6 # encoding: [0x00,0x26,0x30,0x2d]
24 dla $5, 1f # CHECK: ld $5, %got_disp(.Ltmp0)($gp) # encoding: [0xdf,0x85,A,A]
25 # CHECK: # fixup A - offset: 0, value: %got_disp(.Ltmp0), kind: fixup_Mips_GOT_DISP
28 # PIC expansions involving $25 are special.
29 dla $25, symbol # CHECK: ld $25, %call16(symbol)($gp) # encoding: [0xdf,0x99,A,A]
30 # CHECK: # fixup A - offset: 0, value: %call16(symbol), kind: fixup_Mips_CALL16
31 dla $25, symbol($6) # CHECK: ld $25, %got_disp(symbol)($gp) # encoding: [0xdf,0x99,A,A]
32 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
33 # CHECK: daddu $25, $25, $6 # encoding: [0x03,0x26,0xc8,0x2d]
34 dla $25, symbol($25) # CHECK: ld $1, %got_disp(symbol)($gp) # encoding: [0xdf,0x81,A,A]
35 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
36 # CHECK: daddu $25, $1, $25 # encoding: [0x00,0x39,0xc8,0x2d]
37 dla $25, symbol+8 # CHECK: ld $25, %got_disp(symbol)($gp) # encoding: [0xdf,0x99,A,A]
38 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
39 # CHECK: daddiu $25, $25, 8 # encoding: [0x67,0x39,0x00,0x08]
40 dla $25, symbol+8($6) # CHECK: ld $25, %got_disp(symbol)($gp) # encoding: [0xdf,0x99,A,A]
41 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
42 # CHECK: daddiu $25, $25, 8 # encoding: [0x67,0x39,0x00,0x08]
43 # CHECK: daddu $25, $25, $6 # encoding: [0x03,0x26,0xc8,0x2d]
44 dla $25, symbol+8($25)# CHECK: ld $1, %got_disp(symbol)($gp) # encoding: [0xdf,0x81,A,A]
45 # CHECK: # fixup A - offset: 0, value: %got_disp(symbol), kind: fixup_Mips_GOT_DISP
46 # CHECK: daddiu $1, $1, 8 # encoding: [0x64,0x21,0x00,0x08]
47 # CHECK: daddu $25, $1, $25 # encoding: [0x00,0x39,0xc8,0x2d]
48 dla $25, 1f # CHECK: ld $25, %got_disp(.Ltmp1)($gp) # encoding: [0xdf,0x99,A,A]
49 # CHECK: # fixup A - offset: 0, value: %got_disp(.Ltmp1), kind: fixup_Mips_GOT_DISP