From 08a827b7b28cf650b3a757c2b897fd011d350ddc Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 22 Jun 1995 01:29:50 +0000 Subject: [PATCH] new test from Andreas Schwab --- gas/testsuite/gas/m68k/.Sanitize | 2 + gas/testsuite/gas/m68k/schwab.d | 89 ++++++++++++++++++++++++++++++++ gas/testsuite/gas/m68k/schwab.s | 59 +++++++++++++++++++++ 3 files changed, 150 insertions(+) create mode 100644 gas/testsuite/gas/m68k/schwab.d create mode 100644 gas/testsuite/gas/m68k/schwab.s diff --git a/gas/testsuite/gas/m68k/.Sanitize b/gas/testsuite/gas/m68k/.Sanitize index 0b96de35ac5..e2e70ac7a99 100644 --- a/gas/testsuite/gas/m68k/.Sanitize +++ b/gas/testsuite/gas/m68k/.Sanitize @@ -31,6 +31,8 @@ disperr.s p2410.s p2663.s pic1.s +schwab.d +schwab.s t2.s Things-to-lose: diff --git a/gas/testsuite/gas/m68k/schwab.d b/gas/testsuite/gas/m68k/schwab.d new file mode 100644 index 00000000000..393aa5b07a3 --- /dev/null +++ b/gas/testsuite/gas/m68k/schwab.d @@ -0,0 +1,89 @@ +#name: PC-relative relocations +#objdump: -drs + +.*: 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 00a641fa 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 0170ffff A..p....NqA..p.. + 0100 ff0441fb 0930ffff fefc4e71 41f90000 ..A..0....NqA... + 0110 0000............................... ................ +Contents of section .data: +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 0x10002\[%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 0x10002\[%d0\.l\],%a0 +0+0026 lea 0x10002\[%d0\.l\],%a0 +0+002a lea 0x10002\[%d0\.l\],%a0 +0+002e lea 0x2\[%d0\.l\],%a0 +0+0034 lea 0x2\[%d0\.l\],%a0 +0+003a lea 0x2\[%d0\.l\],%a0 +0+0042 lea 0x2\[%d0\.l\],%a0 +0+004a nop +0+004c bsrl 0+00a6 +0+0052 bsr 0+00a6 +0+0056 bsrs 0+00a6 +0+0058 bsrs 0+00a6 +0+005a nop +0+005c lea @#0+00a6 ,%a0 + RELOC: 0+005e (R_68K_)?32 \.text +0+0062 lea 0+00a6 ,%a0 +0+0066 lea 0+0126 ,%a0 +0+006a lea 0xa6\[%d0\.l\],%a0 +0+006e lea 0xa6\[%d0\.l\],%a0 +0+0072 lea 0xa6\[%d0\.l\],%a0 +0+0076 lea 0xa6\[%d0\.l\],%a0 +0+007c lea 0xa6\[%d0\.l\],%a0 +0+0082 lea 0xa6\[%d0\.l\],%a0 +0+008a lea 0xa6\[%d0\.l\],%a0 +0+0092 lea 0xa6\[%d0\.l\],%a0 +0+009a lea 0xa6\[%d0\.l\],%a0 +0+00a0 lea 0xa6\[%d0\.l\],%a0 +0+00a4 nop +0+00a6 nop +0+00a8 nop +0+00aa lea 0x1002c\[%d0\.l\],%a0 +0+00ae lea 0x2f\[%d0\.l\],%a0 +0+00b4 lea 0xf+80b6\[%d0\.l\],%a0 +0+00ba lea 0xf+80bb\[%d0\.l\],%a0 +0+00c2 nop +0+00c4 lea 0x145\[%d0\.l\],%a0 +0+00c8 lea 0x14a\[%d0\.l\],%a0 +0+00ce lea 0x80cf\[%d0\.l\],%a0 +0+00d4 lea 0x80d6\[%d0\.l\],%a0 +0+00dc nop +0+00de lea f+80e0 ,%a0 +0+00e2 lea 0xf+80e3,%a0 +0+00ea nop +0+00ec lea 0+80ed ,%a0 +0+00f0 lea 0x80f2,%a0 +0+00f8 nop +0+00fa lea 0x0,%a0 + RELOC: 0+00fe (R_68K_PC|DISP)32 undef +0+0102 lea 0x0\[%d0\.l\],%a0 + RELOC: 0+0106 (R_68K_PC|DISP)32 undef +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 new file mode 100644 index 00000000000..9c5c22b90fb --- /dev/null +++ b/gas/testsuite/gas/m68k/schwab.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 -- 2.30.2