diff options
Diffstat (limited to 'gas/testsuite/gas/mips/empic3_e.d')
-rw-r--r-- | gas/testsuite/gas/mips/empic3_e.d | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/empic3_e.d b/gas/testsuite/gas/mips/empic3_e.d new file mode 100644 index 00000000000..24ec944ab2f --- /dev/null +++ b/gas/testsuite/gas/mips/empic3_e.d @@ -0,0 +1,47 @@ +#objdump: --prefix-addresses -dr --show-raw-insn -mmips:4000 +#name: MIPS empic3 (external) +#as: -membedded-pic -mips3 + +# Check PC-relative HI/LO relocs relocs for -membedded-pic when HI and +# LO are split over a 32K boundary. + +.*: +file format elf.*mips.* + +Disassembly of section .text: + ... + ... +0000fffc <[^>]*> 3c020001 lui v0,0x1 +[ ]*fffc: R_MIPS_GNU_REL_HI16 ext +00010000 <[^>]*> 64428000 daddiu v0,v0,-32768 +[ ]*10000: R_MIPS_GNU_REL_LO16 ext + ... +00017ffc <[^>]*> 3c020001 lui v0,0x1 +[ ]*17ffc: R_MIPS_GNU_REL_HI16 ext +00018000 <[^>]*> 64420000 daddiu v0,v0,0 +[ ]*18000: R_MIPS_GNU_REL_LO16 ext + ... +0001fffc <[^>]*> 3c020002 lui v0,0x2 +[ ]*1fffc: R_MIPS_GNU_REL_HI16 ext +00020000 <[^>]*> 0043102d daddu v0,v0,v1 +00020004 <[^>]*> 64428004 daddiu v0,v0,-32764 +[ ]*20004: R_MIPS_GNU_REL_LO16 ext + ... +00027ffc <[^>]*> 3c020002 lui v0,0x2 +[ ]*27ffc: R_MIPS_GNU_REL_HI16 ext +00028000 <[^>]*> 0043102d daddu v0,v0,v1 +00028004 <[^>]*> 64420004 daddiu v0,v0,4 +[ ]*28004: R_MIPS_GNU_REL_LO16 ext + ... +0002fff8 <[^>]*> 3c020003 lui v0,0x3 +[ ]*2fff8: R_MIPS_GNU_REL_HI16 ext +0002fffc <[^>]*> 0043102d daddu v0,v0,v1 +00030000 <[^>]*> 64428000 daddiu v0,v0,-32768 +[ ]*30000: R_MIPS_GNU_REL_LO16 ext + ... +00037ff8 <[^>]*> 3c020003 lui v0,0x3 +[ ]*37ff8: R_MIPS_GNU_REL_HI16 ext +00037ffc <[^>]*> 0043102d daddu v0,v0,v1 +00038000 <[^>]*> 64420000 daddiu v0,v0,0 +[ ]*38000: R_MIPS_GNU_REL_LO16 ext + ... + ... |