Skip to content

Commit 800d8be

Browse files
committed
Fold tests into macro-la-pic.s
1 parent a760ac7 commit 800d8be

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

llvm/test/MC/Mips/macro-la-local.s

Lines changed: 0 additions & 23 deletions
This file was deleted.

llvm/test/MC/Mips/macro-la-pic.s

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,25 @@ la $25, 2f
255255
# XN32: lw $25, %got_disp(.Ltmp1)($gp) # encoding: [0x8f,0x99,A,A]
256256
# XN32: # fixup A - offset: 0, value: %got_disp(.Ltmp1), kind: fixup_Mips_GOT_DISP
257257
2:
258+
259+
la $2,.Lstr
260+
# O32: lw $2, %got(.Lstr)($gp) # encoding: [0x8f,0x82,A,A]
261+
# O32-NEXT: # fixup A - offset: 0, value: %got(.Lstr), kind: fixup_Mips_GOT
262+
# O32-NEXT: addiu $2, $2, %lo(.Lstr) # encoding: [0x24,0x42,A,A]
263+
# O32-NEXT: # fixup A - offset: 0, value: %lo(.Lstr), kind: fixup_Mips_LO16
264+
265+
# N32: lw $2, %got_disp(.Lstr)($gp) # encoding: [0x8f,0x82,A,A]
266+
# N32-NEXT: # fixup A - offset: 0, value: %got_disp(.Lstr), kind: fixup_Mips_GOT_DISP
267+
268+
la $2,$str2
269+
# O32: lw $2, %got($str2)($gp) # encoding: [0x8f,0x82,A,A]
270+
# O32-NEXT: # fixup A - offset: 0, value: %got($str2), kind: fixup_Mips_GOT
271+
# O32-NEXT: addiu $2, $2, %lo($str2) # encoding: [0x24,0x42,A,A]
272+
# O32-NEXT: # fixup A - offset: 0, value: %lo($str2), kind: fixup_Mips_LO16
273+
274+
# N32: lw $2, %got_disp($str2)($gp) # encoding: [0x8f,0x82,A,A]
275+
# N32-NEXT: # fixup A - offset: 0, value: %got_disp($str2), kind: fixup_Mips_GOT_DISP
276+
277+
.rodata
278+
.Lstr: .4byte 0
279+
$str2: .4byte 0

0 commit comments

Comments
 (0)