From: Ian Lance Taylor Date: Mon, 8 Jul 1996 18:37:30 +0000 (+0000) Subject: At the request of Andreas Schwab: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f93e43a11447b57828af900148dce81aa79c372b;p=binutils-gdb.git At the request of Andreas Schwab: * gas/m68k/pcrel.d: Rename from schwab.d. * gas/m68k/pcrel.s: Rename from schwab.s. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e8adddee654..95884fdd454 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 8 14:27:39 1996 Ian Lance Taylor + + * gas/m68k/pcrel.d: Rename from schwab.d. + * gas/m68k/pcrel.s: Rename from schwab.s. + Mon Jul 8 14:23:26 1996 Andreas Schwab * gas/m68k/schwab.d: Correct for ELF format. diff --git a/gas/testsuite/gas/m68k/.Sanitize b/gas/testsuite/gas/m68k/.Sanitize index 50a1cfbfe95..a15725f3fc7 100644 --- a/gas/testsuite/gas/m68k/.Sanitize +++ b/gas/testsuite/gas/m68k/.Sanitize @@ -40,9 +40,9 @@ operands.d operands.s p2410.s p2663.s +pcrel.d +pcrel.s pic1.s -schwab.d -schwab.s t2.s Things-to-lose: diff --git a/gas/testsuite/gas/m68k/pcrel.d b/gas/testsuite/gas/m68k/pcrel.d new file mode 100644 index 00000000000..c5ced5bf2e1 --- /dev/null +++ b/gas/testsuite/gas/m68k/pcrel.d @@ -0,0 +1,88 @@ +#name: pcrel +#objdump: -drs -j .text + +.*: file format .* + +Contents of section .text: + 0000 4e714e71 4cfa0300 fffa4cfa 0300fff4 NqNqL.....L..... + 0010 4cfb0300 08ee41fa ffea41fa ffe641fa L.....A...A...A. + 0020 ff6241fb 08de41fb 08da41fb 08d641fb .bA...A...A...A. + 0030 0920ffd2 41fb0920 ffcc41fb 0930ffff . ..A.. ..A..0.. + 0040 ffc641fb 0930ffff ffbe4e71 61ff0000 ..A..0....Nqa... + 0050 00586100 0052614e 614c4e71 41f90000 .Xa..RaNaLNqA... + 0060 00(a6|00)41fa 004241fa 00be41fb 083a41fb ..A..BA...A..:A. + 0070 083641fb 083241fb 0920002e 41fb0920 .6A..2A.. ..A.. + 0080 002841fb 09300000 002241fb 09300000 .\(A..0..."A..0.. + 0090 001a41fb 09300000 001241fb 0920000a ..A..0....A.. .. + 00a0 41fb0804 4e714e71 4e7141fb 088041fb A...NqNqNqA...A. + 00b0 0920ff7f 41fb0920 800041fb 0930ffff . ..A.. ..A..0.. + 00c0 7fff4e71 41fb087f 41fb0920 008041fb ..NqA...A.. ..A. + 00d0 09207fff 41fb0930 00008000 4e7141fa . ..A..0....NqA. + 00e0 800041fb 0170ffff 7fff4e71 41fa7fff ..A..p....NqA... + 00f0 41fb0170 00008000 4e7141fb 0170(ffff|0000) A..p....NqA..p.. + 0100 (ff04|0000)41fb 0930(ffff|0000) (fefc|0000)4e71 41f90000 ..A..0....NqA... + 0110 0000............................... ................ +Disassembly of section \.text: +0+0000 <.*> nop +0+0002 nop +0+0004 moveml 0+0002 ,%a0-%a1 +0+000a moveml 0+0002 ,%a0-%a1 +0+0010 moveml %pc@\(0+02 ,%d0:l\),%a0-%a1 +0+0016 lea 0+0002 ,%a0 +0+001a lea 0+0002 ,%a0 +0+001e lea f+ff82 <.*>,%a0 +0+0022 lea %pc@\(0+02 ,%d0:l\),%a0 +0+0026 lea %pc@\(0+02 ,%d0:l\),%a0 +0+002a lea %pc@\(0+02 ,%d0:l\),%a0 +0+002e lea %pc@\(0+02 ,%d0:l\),%a0 +0+0034 lea %pc@\(0+02 ,%d0:l\),%a0 +0+003a lea %pc@\(0+02 ,%d0:l\),%a0 +0+0042 lea %pc@\(0+02 ,%d0:l\),%a0 +0+004a nop +0+004c bsrl 0+00a6 +0+0052 bsrw 0+00a6 +0+0056 bsrs 0+00a6 +0+0058 bsrs 0+00a6 +0+005a nop +0+005c lea (0+00a6 |0+0 <.*>),%a0 + RELOC: 0+005e (32 \.text|R_68K_32 \.text\+0x0+00a6) +0+0062 lea 0+00a6 ,%a0 +0+0066 lea 0+0126 <.*>,%a0 +0+006a lea %pc@\(0+a6 ,%d0:l\),%a0 +0+006e lea %pc@\(0+a6 ,%d0:l\),%a0 +0+0072 lea %pc@\(0+a6 ,%d0:l\),%a0 +0+0076 lea %pc@\(0+a6 ,%d0:l\),%a0 +0+007c lea %pc@\(0+a6 ,%d0:l\),%a0 +0+0082 lea %pc@\(0+a6 ,%d0:l\),%a0 +0+008a lea %pc@\(0+a6 ,%d0:l\),%a0 +0+0092 lea %pc@\(0+a6 ,%d0:l\),%a0 +0+009a lea %pc@\(0+a6 ,%d0:l\),%a0 +0+00a0 lea %pc@\(0+a6 ,%d0:l\),%a0 +0+00a4 nop +0+00a6 nop +0+00a8 nop +0+00aa lea %pc@\(0+2c ,%d0:l\),%a0 +0+00ae lea %pc@\(0+2f ,%d0:l\),%a0 +0+00b4 lea %pc@\(f+80b6 <.*>,%d0:l\),%a0 +0+00ba lea %pc@\(f+80bb <.*>,%d0:l\),%a0 +0+00c2 nop +0+00c4 lea %pc@\(0+145 <.*>,%d0:l\),%a0 +0+00c8 lea %pc@\(0+14a <.*>,%d0:l\),%a0 +0+00ce lea %pc@\(0+80cf <.*>,%d0:l\),%a0 +0+00d4 lea %pc@\(0+80d6 <.*>,%d0:l\),%a0 +0+00dc nop +0+00de lea f+80e0 <.*>,%a0 +0+00e2 lea %pc@\(f+80e3 <.*>\),%a0 +0+00ea nop +0+00ec lea 0+80ed <.*>,%a0 +0+00f0 lea %pc@\(0+80f2 <.*>\),%a0 +0+00f8 nop +0+00fa lea %pc@\((0+0 <.*>|0+0fc )\),%a0 + RELOC: 0+00fe (DISP32 undef|R_68K_PC32 undef\+0x0+02) +0+0102 lea %pc@\((0+0 <.*>|0+0104 ),%d0:l\),%a0 + RELOC: 0+0106 (DISP32 undef|R_68K_PC32 undef\+0x0+02) +0+010a nop +0+010c lea 0+0 <.*>,%a0 + RELOC: 0+010e (R_68K_)?32 undef +0+0112 nop +\.\.\. diff --git a/gas/testsuite/gas/m68k/pcrel.s b/gas/testsuite/gas/m68k/pcrel.s new file mode 100644 index 00000000000..9c5c22b90fb --- /dev/null +++ b/gas/testsuite/gas/m68k/pcrel.s @@ -0,0 +1,59 @@ + nop +lbl_b: nop + moveml lbl_b,%a0-%a1 + moveml %pc@(lbl_b),%a0-%a1 + moveml %pc@(lbl_b,%d0),%a0-%a1 + lea lbl_b,%a0 + lea %pc@(lbl_b),%a0 + lea %pc@(lbl_b-128),%a0 + lea %pc@(lbl_b,%d0),%a0 + lea %pc@(lbl_b:b,%d0),%a0 + lea %pc@(lbl_b-.-2:b,%d0),%a0 + lea %pc@(lbl_b:w,%d0),%a0 + lea %pc@(lbl_b-.-2:w,%d0),%a0 + lea %pc@(lbl_b:l,%d0),%a0 + lea %pc@(lbl_b-.-2:l,%d0),%a0 + nop + bsrl lbl_a + bsr lbl_a + bsrs lbl_a + jbsr lbl_a + nop + lea lbl_a,%a0 + lea %pc@(lbl_a),%a0 + lea %pc@(lbl_a+128),%a0 + lea %pc@(lbl_a,%d0),%a0 + lea %pc@(lbl_a:b,%d0),%a0 + lea %pc@(lbl_a-.-2:b,%d0),%a0 + lea %pc@(lbl_a:w,%d0),%a0 + lea %pc@(lbl_a-.-2:w,%d0),%a0 + lea %pc@(lbl_a:l,%d0),%a0 + lea %pc@(lbl_a-.-2:l,%d0),%a0 + lea %pc@(18:l,%d0),%a0 + lea %pc@(10:w,%d0),%a0 + lea %pc@(4:b,%d0),%a0 + nop +lbl_a: nop + nop + lea %pc@(.-126,%d0),%a0 + lea %pc@(.-127,%d0),%a0 + lea %pc@(.-32766,%d0),%a0 + lea %pc@(.-32767,%d0),%a0 + nop + lea %pc@(.+129,%d0),%a0 + lea %pc@(.+130,%d0),%a0 + lea %pc@(.+32769,%d0),%a0 + lea %pc@(.+32770,%d0),%a0 + nop + lea %pc@(.-32766),%a0 + lea %pc@(.-32767),%a0 + nop + lea %pc@(.+32769),%a0 + lea %pc@(.+32770),%a0 + nop + lea %pc@(undef),%a0 + lea %pc@(undef,%d0),%a0 + nop + lea undef,%a0 + nop + .long 0 diff --git a/gas/testsuite/gas/m68k/schwab.d b/gas/testsuite/gas/m68k/schwab.d deleted file mode 100644 index ea7c0e3ad64..00000000000 --- a/gas/testsuite/gas/m68k/schwab.d +++ /dev/null @@ -1,88 +0,0 @@ -#name: PC-relative relocations -#objdump: -drs -j .text - -.*: file format .* - -Contents of section .text: - 0000 4e714e71 4cfa0300 fffa4cfa 0300fff4 NqNqL.....L..... - 0010 4cfb0300 08ee41fa ffea41fa ffe641fa L.....A...A...A. - 0020 ff6241fb 08de41fb 08da41fb 08d641fb .bA...A...A...A. - 0030 0920ffd2 41fb0920 ffcc41fb 0930ffff . ..A.. ..A..0.. - 0040 ffc641fb 0930ffff ffbe4e71 61ff0000 ..A..0....Nqa... - 0050 00586100 0052614e 614c4e71 41f90000 .Xa..RaNaLNqA... - 0060 00(a6|00)41fa 004241fa 00be41fb 083a41fb ..A..BA...A..:A. - 0070 083641fb 083241fb 0920002e 41fb0920 .6A..2A.. ..A.. - 0080 002841fb 09300000 002241fb 09300000 .\(A..0..."A..0.. - 0090 001a41fb 09300000 001241fb 0920000a ..A..0....A.. .. - 00a0 41fb0804 4e714e71 4e7141fb 088041fb A...NqNqNqA...A. - 00b0 0920ff7f 41fb0920 800041fb 0930ffff . ..A.. ..A..0.. - 00c0 7fff4e71 41fb087f 41fb0920 008041fb ..NqA...A.. ..A. - 00d0 09207fff 41fb0930 00008000 4e7141fa . ..A..0....NqA. - 00e0 800041fb 0170ffff 7fff4e71 41fa7fff ..A..p....NqA... - 00f0 41fb0170 00008000 4e7141fb 0170(ffff|0000) A..p....NqA..p.. - 0100 (ff04|0000)41fb 0930(ffff|0000) (fefc|0000)4e71 41f90000 ..A..0....NqA... - 0110 0000............................... ................ -Disassembly of section \.text: -0+0000 <.*> nop -0+0002 nop -0+0004 moveml 0+0002 ,%a0-%a1 -0+000a moveml 0+0002 ,%a0-%a1 -0+0010 moveml %pc@\(0+02 ,%d0:l\),%a0-%a1 -0+0016 lea 0+0002 ,%a0 -0+001a lea 0+0002 ,%a0 -0+001e lea f+ff82 <.*>,%a0 -0+0022 lea %pc@\(0+02 ,%d0:l\),%a0 -0+0026 lea %pc@\(0+02 ,%d0:l\),%a0 -0+002a lea %pc@\(0+02 ,%d0:l\),%a0 -0+002e lea %pc@\(0+02 ,%d0:l\),%a0 -0+0034 lea %pc@\(0+02 ,%d0:l\),%a0 -0+003a lea %pc@\(0+02 ,%d0:l\),%a0 -0+0042 lea %pc@\(0+02 ,%d0:l\),%a0 -0+004a nop -0+004c bsrl 0+00a6 -0+0052 bsrw 0+00a6 -0+0056 bsrs 0+00a6 -0+0058 bsrs 0+00a6 -0+005a nop -0+005c lea (0+00a6 |0+0 <.*>),%a0 - RELOC: 0+005e (32 \.text|R_68K_32 \.text\+0x0+00a6) -0+0062 lea 0+00a6 ,%a0 -0+0066 lea 0+0126 <.*>,%a0 -0+006a lea %pc@\(0+a6 ,%d0:l\),%a0 -0+006e lea %pc@\(0+a6 ,%d0:l\),%a0 -0+0072 lea %pc@\(0+a6 ,%d0:l\),%a0 -0+0076 lea %pc@\(0+a6 ,%d0:l\),%a0 -0+007c lea %pc@\(0+a6 ,%d0:l\),%a0 -0+0082 lea %pc@\(0+a6 ,%d0:l\),%a0 -0+008a lea %pc@\(0+a6 ,%d0:l\),%a0 -0+0092 lea %pc@\(0+a6 ,%d0:l\),%a0 -0+009a lea %pc@\(0+a6 ,%d0:l\),%a0 -0+00a0 lea %pc@\(0+a6 ,%d0:l\),%a0 -0+00a4 nop -0+00a6 nop -0+00a8 nop -0+00aa lea %pc@\(0+2c ,%d0:l\),%a0 -0+00ae lea %pc@\(0+2f ,%d0:l\),%a0 -0+00b4 lea %pc@\(f+80b6 <.*>,%d0:l\),%a0 -0+00ba lea %pc@\(f+80bb <.*>,%d0:l\),%a0 -0+00c2 nop -0+00c4 lea %pc@\(0+145 <.*>,%d0:l\),%a0 -0+00c8 lea %pc@\(0+14a <.*>,%d0:l\),%a0 -0+00ce lea %pc@\(0+80cf <.*>,%d0:l\),%a0 -0+00d4 lea %pc@\(0+80d6 <.*>,%d0:l\),%a0 -0+00dc nop -0+00de lea f+80e0 <.*>,%a0 -0+00e2 lea %pc@\(f+80e3 <.*>\),%a0 -0+00ea nop -0+00ec lea 0+80ed <.*>,%a0 -0+00f0 lea %pc@\(0+80f2 <.*>\),%a0 -0+00f8 nop -0+00fa lea %pc@\((0+0 <.*>|0+0fc )\),%a0 - RELOC: 0+00fe (DISP32 undef|R_68K_PC32 undef\+0x0+02) -0+0102 lea %pc@\((0+0 <.*>|0+0104 ),%d0:l\),%a0 - RELOC: 0+0106 (DISP32 undef|R_68K_PC32 undef\+0x0+02) -0+010a nop -0+010c lea 0+0 <.*>,%a0 - RELOC: 0+010e (R_68K_)?32 undef -0+0112 nop -\.\.\. diff --git a/gas/testsuite/gas/m68k/schwab.s b/gas/testsuite/gas/m68k/schwab.s deleted file mode 100644 index 9c5c22b90fb..00000000000 --- a/gas/testsuite/gas/m68k/schwab.s +++ /dev/null @@ -1,59 +0,0 @@ - nop -lbl_b: nop - moveml lbl_b,%a0-%a1 - moveml %pc@(lbl_b),%a0-%a1 - moveml %pc@(lbl_b,%d0),%a0-%a1 - lea lbl_b,%a0 - lea %pc@(lbl_b),%a0 - lea %pc@(lbl_b-128),%a0 - lea %pc@(lbl_b,%d0),%a0 - lea %pc@(lbl_b:b,%d0),%a0 - lea %pc@(lbl_b-.-2:b,%d0),%a0 - lea %pc@(lbl_b:w,%d0),%a0 - lea %pc@(lbl_b-.-2:w,%d0),%a0 - lea %pc@(lbl_b:l,%d0),%a0 - lea %pc@(lbl_b-.-2:l,%d0),%a0 - nop - bsrl lbl_a - bsr lbl_a - bsrs lbl_a - jbsr lbl_a - nop - lea lbl_a,%a0 - lea %pc@(lbl_a),%a0 - lea %pc@(lbl_a+128),%a0 - lea %pc@(lbl_a,%d0),%a0 - lea %pc@(lbl_a:b,%d0),%a0 - lea %pc@(lbl_a-.-2:b,%d0),%a0 - lea %pc@(lbl_a:w,%d0),%a0 - lea %pc@(lbl_a-.-2:w,%d0),%a0 - lea %pc@(lbl_a:l,%d0),%a0 - lea %pc@(lbl_a-.-2:l,%d0),%a0 - lea %pc@(18:l,%d0),%a0 - lea %pc@(10:w,%d0),%a0 - lea %pc@(4:b,%d0),%a0 - nop -lbl_a: nop - nop - lea %pc@(.-126,%d0),%a0 - lea %pc@(.-127,%d0),%a0 - lea %pc@(.-32766,%d0),%a0 - lea %pc@(.-32767,%d0),%a0 - nop - lea %pc@(.+129,%d0),%a0 - lea %pc@(.+130,%d0),%a0 - lea %pc@(.+32769,%d0),%a0 - lea %pc@(.+32770,%d0),%a0 - nop - lea %pc@(.-32766),%a0 - lea %pc@(.-32767),%a0 - nop - lea %pc@(.+32769),%a0 - lea %pc@(.+32770),%a0 - nop - lea %pc@(undef),%a0 - lea %pc@(undef,%d0),%a0 - nop - lea undef,%a0 - nop - .long 0