--- /dev/null
+#as: -64
+#objdump: -dr --prefix-addresses
+#name: DLA with relocation operators
+
+.*file format.*
+
+Disassembly of section \.text:
+[0-9a-f]+ <[^>]*> daddiu a0,zero,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 foo
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[0-9a-f]+ <[^>]*> daddiu a0,zero,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_HI16 foo
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[0-9a-f]+ <[^>]*> daddiu a0,zero,-30875
+[0-9a-f]+ <[^>]*> daddiu a0,zero,4661
+[0-9a-f]+ <[^>]*> daddiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 foo
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[0-9a-f]+ <[^>]*> daddiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_HI16 foo
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[0-9a-f]+ <[^>]*> daddiu a0,a1,-30875
+[0-9a-f]+ <[^>]*> daddiu a0,a1,4661
+[0-9a-f]+ <[^>]*> daddiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 foo\+0x12348765
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[0-9a-f]+ <[^>]*> daddiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_HI16 foo\+0x12348765
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[ ]*[0-9a-f]+: R_MIPS_NONE .*
+[0-9a-f]+ <[^>]*> daddiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_GPREL16 bar
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_SUB \*ABS\*
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_HI16 \*ABS\*
+[0-9a-f]+ <[^>]*> daddiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_GPREL16 bar
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_SUB \*ABS\*
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 \*ABS\*
+#pass
--- /dev/null
+#as: -32
+#objdump: -dr --prefix-addresses
+#name: LA with relocation operators
+
+.*file format.*
+
+Disassembly of section \.text:
+[0-9a-f]+ <[^>]*> li a0,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 foo
+[0-9a-f]+ <[^>]*> li a0,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_HI16 foo
+[0-9a-f]+ <[^>]*> li a0,-30875
+[0-9a-f]+ <[^>]*> li a0,4661
+[0-9a-f]+ <[^>]*> addiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 foo
+[0-9a-f]+ <[^>]*> addiu a0,a1,0
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_HI16 foo
+[0-9a-f]+ <[^>]*> addiu a0,a1,-30875
+[0-9a-f]+ <[^>]*> addiu a0,a1,4661
+[0-9a-f]+ <[^>]*> addiu a0,a1,-30875
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 foo
+[0-9a-f]+ <[^>]*> addiu a0,a1,4661
+[ ]*[0-9a-f]+: R_(MICRO|)MIPS_HI16 foo
+#pass