@@ -255,3 +255,25 @@ la $25, 2f
255
255
# XN32: lw $25, %got_disp(.Ltmp1)($gp) # encoding: [0x8f,0x99,A,A]
256
256
# XN32: # fixup A - offset: 0, value: %got_disp(.Ltmp1), kind: fixup_Mips_GOT_DISP
257
257
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