diff options
author | DJ Delorie <dj@redhat.com> | 2002-12-20 21:14:04 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2002-12-20 21:14:04 +0000 |
commit | 9a7e42b63ffa91ba2ba1660fc7c85e855f5eb55e (patch) | |
tree | 344a2f26e34cb2fbf7718158618cce1910336732 /gas | |
parent | 2eb47c5fe996139b617fc71b1babc20dd9f9ce60 (diff) | |
download | gdb-9a7e42b63ffa91ba2ba1660fc7c85e855f5eb55e.zip gdb-9a7e42b63ffa91ba2ba1660fc7c85e855f5eb55e.tar.gz gdb-9a7e42b63ffa91ba2ba1660fc7c85e855f5eb55e.tar.bz2 |
* gas/xstormy16/allinsn.sh: Add tests for 12-bit reloc.
* gas/xstormy16/allinsn.s: Likewise.
* gas/xstormy16/allinsn.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/xstormy16/allinsn.d | 108 | ||||
-rw-r--r-- | gas/testsuite/gas/xstormy16/allinsn.s | 65 | ||||
-rw-r--r-- | gas/testsuite/gas/xstormy16/allinsn.sh | 65 |
4 files changed, 244 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d32cb23..6d9e3be 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-12-20 DJ Delorie <dj@redhat.com> + + * gas/xstormy16/allinsn.sh: Add tests for 12-bit reloc. + * gas/xstormy16/allinsn.s: Likewise. + * gas/xstormy16/allinsn.d: Likewise. + 2002-12-18 Chris Demetriou <cgd@broadcom.com> * gas/mips/rol.s: Add ".set noat" and some new instructions to test. diff --git a/gas/testsuite/gas/xstormy16/allinsn.d b/gas/testsuite/gas/xstormy16/allinsn.d index 6ce3330..a96354d 100644 --- a/gas/testsuite/gas/xstormy16/allinsn.d +++ b/gas/testsuite/gas/xstormy16/allinsn.d @@ -1232,3 +1232,111 @@ Disassembly of section \.text: 9ca: c1 15 callr 0xf8c 9cc: 53 16 callr 0x1020 9ce: d3 13 callr 0xda2 + +000009d0 <movgrgrsi>: + 9d0: 08 70 00 00 mov\.b r0,\(r0,0\) + 9d2: R_XSTORMY16_12 extsym + 9d4: ff 71 00 00 mov\.w r7,\(r15,0\) + 9d6: R_XSTORMY16_12 extsym\+0xffffffff + 9d8: 8c 71 00 00 mov\.w r4,\(r8,0\) + 9da: R_XSTORMY16_12 extsym\+0xfffff800 + 9dc: 7b 70 00 00 mov\.b r3,\(r7,0\) + 9de: R_XSTORMY16_12 extsym\+0x7ff + 9e0: 19 71 00 00 mov\.w r1,\(r1,0\) + 9e2: R_XSTORMY16_12 extsym\+0x1 + 9e4: 8e 71 00 00 mov\.w r6,\(r8,0\) + 9e6: R_XSTORMY16_12 extsym\+0xfffffe3c + 9e8: bc 71 00 00 mov\.w r4,\(r11,0\) + 9ea: R_XSTORMY16_12 extsym\+0x23c + 9ec: 19 70 00 00 mov\.b r1,\(r1,0\) + 9ee: R_XSTORMY16_12 extsym\+0xfffff94a + +000009f0 <movgrgrsipostinc>: + 9f0: 08 60 00 00 mov\.b r0,\(r0\+\+,0\) + 9f2: R_XSTORMY16_12 extsym + 9f4: ff 61 00 00 mov\.w r7,\(r15\+\+,0\) + 9f6: R_XSTORMY16_12 extsym\+0xffffffff + 9f8: 8c 61 00 00 mov\.w r4,\(r8\+\+,0\) + 9fa: R_XSTORMY16_12 extsym\+0xfffff800 + 9fc: 7b 60 00 00 mov\.b r3,\(r7\+\+,0\) + 9fe: R_XSTORMY16_12 extsym\+0x7ff + a00: 19 61 00 00 mov\.w r1,\(r1\+\+,0\) + a02: R_XSTORMY16_12 extsym\+0x1 + a04: 0e 61 00 00 mov\.w r6,\(r0\+\+,0\) + a06: R_XSTORMY16_12 extsym\+0xffffffc0 + a08: ff 60 00 00 mov\.b r7,\(r15\+\+,0\) + a0a: R_XSTORMY16_12 extsym\+0x424 + a0c: 78 60 00 00 mov\.b r0,\(r7\+\+,0\) + a0e: R_XSTORMY16_12 extsym\+0x34f + +00000a10 <movgrgrsipredec>: + a10: 08 68 00 00 mov\.b r0,\(--r0,0\) + a12: R_XSTORMY16_12 extsym + a14: ff 69 00 00 mov\.w r7,\(--r15,0\) + a16: R_XSTORMY16_12 extsym\+0xffffffff + a18: 8c 69 00 00 mov\.w r4,\(--r8,0\) + a1a: R_XSTORMY16_12 extsym\+0xfffff800 + a1c: 7b 68 00 00 mov\.b r3,\(--r7,0\) + a1e: R_XSTORMY16_12 extsym\+0x7ff + a20: 19 69 00 00 mov\.w r1,\(--r1,0\) + a22: R_XSTORMY16_12 extsym\+0x1 + a24: f8 69 00 00 mov\.w r0,\(--r15,0\) + a26: R_XSTORMY16_12 extsym\+0x6f4 + a28: 1e 69 00 00 mov\.w r6,\(--r1,0\) + a2a: R_XSTORMY16_12 extsym\+0x5e2 + a2c: 3f 69 00 00 mov\.w r7,\(--r3,0\) + a2e: R_XSTORMY16_12 extsym\+0xfffff80f + +00000a30 <movgrsigr>: + a30: 08 72 00 00 mov\.b \(r0,0\),r0 + a32: R_XSTORMY16_12 extsym + a34: ff 73 00 00 mov\.w \(r15,0\),r7 + a36: R_XSTORMY16_12 extsym\+0xffffffff + a38: 8c 73 00 00 mov\.w \(r8,0\),r4 + a3a: R_XSTORMY16_12 extsym\+0xfffff800 + a3c: 7b 72 00 00 mov\.b \(r7,0\),r3 + a3e: R_XSTORMY16_12 extsym\+0x7ff + a40: 19 73 00 00 mov\.w \(r1,0\),r1 + a42: R_XSTORMY16_12 extsym\+0x1 + a44: 7d 73 00 00 mov\.w \(r7,0\),r5 + a46: R_XSTORMY16_12 extsym\+0x79c + a48: 3c 72 00 00 mov\.b \(r3,0\),r4 + a4a: R_XSTORMY16_12 extsym\+0xfffffcb4 + a4c: f8 73 00 00 mov\.w \(r15,0\),r0 + a4e: R_XSTORMY16_12 extsym\+0x6a8 + +00000a50 <movgrsipostincgr>: + a50: 08 62 00 00 mov\.b \(r0\+\+,0\),r0 + a52: R_XSTORMY16_12 extsym + a54: ff 63 00 00 mov\.w \(r15\+\+,0\),r7 + a56: R_XSTORMY16_12 extsym\+0xffffffff + a58: 8c 63 00 00 mov\.w \(r8\+\+,0\),r4 + a5a: R_XSTORMY16_12 extsym\+0xfffff800 + a5c: 7b 62 00 00 mov\.b \(r7\+\+,0\),r3 + a5e: R_XSTORMY16_12 extsym\+0x7ff + a60: 19 63 00 00 mov\.w \(r1\+\+,0\),r1 + a62: R_XSTORMY16_12 extsym\+0x1 + a64: 2f 63 00 00 mov\.w \(r2\+\+,0\),r7 + a66: R_XSTORMY16_12 extsym\+0xffffff50 + a68: 8c 63 00 00 mov\.w \(r8\+\+,0\),r4 + a6a: R_XSTORMY16_12 extsym\+0x56d + a6c: 38 62 00 00 mov\.b \(r3\+\+,0\),r0 + a6e: R_XSTORMY16_12 extsym\+0x2f + +00000a70 <movgrsipredecgr>: + a70: 08 6a 00 00 mov\.b \(--r0,0\),r0 + a72: R_XSTORMY16_12 extsym + a74: ff 6b 00 00 mov\.w \(--r15,0\),r7 + a76: R_XSTORMY16_12 extsym\+0xffffffff + a78: 8c 6b 00 00 mov\.w \(--r8,0\),r4 + a7a: R_XSTORMY16_12 extsym\+0xfffff800 + a7c: 7b 6a 00 00 mov\.b \(--r7,0\),r3 + a7e: R_XSTORMY16_12 extsym\+0x7ff + a80: 19 6b 00 00 mov\.w \(--r1,0\),r1 + a82: R_XSTORMY16_12 extsym\+0x1 + a84: 8c 6a 00 00 mov\.b \(--r8,0\),r4 + a86: R_XSTORMY16_12 extsym\+0x3ec + a88: ea 6b 00 00 mov\.w \(--r14,0\),r2 + a8a: R_XSTORMY16_12 extsym\+0xfffffa5c + a8c: 5c 6a 00 00 mov\.b \(--r5,0\),r4 + a8e: R_XSTORMY16_12 extsym\+0xfffffc61 diff --git a/gas/testsuite/gas/xstormy16/allinsn.s b/gas/testsuite/gas/xstormy16/allinsn.s index 0b34a75..a443d12 100644 --- a/gas/testsuite/gas/xstormy16/allinsn.s +++ b/gas/testsuite/gas/xstormy16/allinsn.s @@ -1360,3 +1360,68 @@ callrimm: callr 1472+(.+2) callr 1618+(.+2) callr 978+(.+2) + +movgrgrsi: + mov.b r0,(r0,extsym) + mov.w r7,(r15,extsym-1) + mov.w r4,(r8,extsym-2048) + mov.b r3,(r7,extsym+2047) + mov.w r1,(r1,extsym+1) + mov.w r6,(r8,extsym-452) + mov.w r4,(r11,extsym+572) + mov.b r1,(r1,extsym-1718) + .text + .global movgrgriipostinc +movgrgrsipostinc: + mov.b r0,(r0++,extsym) + mov.w r7,(r15++,extsym-1) + mov.w r4,(r8++,extsym-2048) + mov.b r3,(r7++,extsym+2047) + mov.w r1,(r1++,extsym+1) + mov.w r6,(r0++,extsym-64) + mov.b r7,(r15++,extsym+1060) + mov.b r0,(r7++,extsym+847) + .text + .global movgrgriipredec +movgrgrsipredec: + mov.b r0,(--r0,extsym) + mov.w r7,(--r15,extsym-1) + mov.w r4,(--r8,extsym-2048) + mov.b r3,(--r7,extsym+2047) + mov.w r1,(--r1,extsym+1) + mov.w r0,(--r15,extsym+1780) + mov.w r6,(--r1,extsym+1506) + mov.w r7,(--r3,extsym-2033) + .text + .global movgriigr +movgrsigr: + mov.b (r0,extsym),r0 + mov.w (r15,extsym-1),r7 + mov.w (r8,extsym-2048),r4 + mov.b (r7,extsym+2047),r3 + mov.w (r1,extsym+1),r1 + mov.w (r7,extsym+1948),r5 + mov.b (r3,extsym-844),r4 + mov.w (r15,extsym+1704),r0 + .text + .global movgriipostincgr +movgrsipostincgr: + mov.b (r0++,extsym),r0 + mov.w (r15++,extsym-1),r7 + mov.w (r8++,extsym-2048),r4 + mov.b (r7++,extsym+2047),r3 + mov.w (r1++,extsym+1),r1 + mov.w (r2++,extsym-176),r7 + mov.w (r8++,extsym+1389),r4 + mov.b (r3++,extsym+47),r0 + .text + .global movgriipredecgr +movgrsipredecgr: + mov.b (--r0,extsym),r0 + mov.w (--r15,extsym-1),r7 + mov.w (--r8,extsym-2048),r4 + mov.b (--r7,extsym+2047),r3 + mov.w (--r1,extsym+1),r1 + mov.b (--r8,extsym+1004),r4 + mov.w (--r14,extsym-1444),r2 + mov.b (--r5,extsym-927),r4 diff --git a/gas/testsuite/gas/xstormy16/allinsn.sh b/gas/testsuite/gas/xstormy16/allinsn.sh index 3b92064..03828f9 100644 --- a/gas/testsuite/gas/xstormy16/allinsn.sh +++ b/gas/testsuite/gas/xstormy16/allinsn.sh @@ -1399,6 +1399,71 @@ callrimm: callr 1472+(.+2) callr 1618+(.+2) callr 978+(.+2) + +movgrgrsi: + mov.b r0,(r0,extsym) + mov.w r7,(r15,extsym-1) + mov.w r4,(r8,extsym-2048) + mov.b r3,(r7,extsym+2047) + mov.w r1,(r1,extsym+1) + mov.w r6,(r8,extsym-452) + mov.w r4,(r11,extsym+572) + mov.b r1,(r1,extsym-1718) + .text + .global movgrgriipostinc +movgrgrsipostinc: + mov.b r0,(r0++,extsym) + mov.w r7,(r15++,extsym-1) + mov.w r4,(r8++,extsym-2048) + mov.b r3,(r7++,extsym+2047) + mov.w r1,(r1++,extsym+1) + mov.w r6,(r0++,extsym-64) + mov.b r7,(r15++,extsym+1060) + mov.b r0,(r7++,extsym+847) + .text + .global movgrgriipredec +movgrgrsipredec: + mov.b r0,(--r0,extsym) + mov.w r7,(--r15,extsym-1) + mov.w r4,(--r8,extsym-2048) + mov.b r3,(--r7,extsym+2047) + mov.w r1,(--r1,extsym+1) + mov.w r0,(--r15,extsym+1780) + mov.w r6,(--r1,extsym+1506) + mov.w r7,(--r3,extsym-2033) + .text + .global movgriigr +movgrsigr: + mov.b (r0,extsym),r0 + mov.w (r15,extsym-1),r7 + mov.w (r8,extsym-2048),r4 + mov.b (r7,extsym+2047),r3 + mov.w (r1,extsym+1),r1 + mov.w (r7,extsym+1948),r5 + mov.b (r3,extsym-844),r4 + mov.w (r15,extsym+1704),r0 + .text + .global movgriipostincgr +movgrsipostincgr: + mov.b (r0++,extsym),r0 + mov.w (r15++,extsym-1),r7 + mov.w (r8++,extsym-2048),r4 + mov.b (r7++,extsym+2047),r3 + mov.w (r1++,extsym+1),r1 + mov.w (r2++,extsym-176),r7 + mov.w (r8++,extsym+1389),r4 + mov.b (r3++,extsym+47),r0 + .text + .global movgriipredecgr +movgrsipredecgr: + mov.b (--r0,extsym),r0 + mov.w (--r15,extsym-1),r7 + mov.w (--r8,extsym-2048),r4 + mov.b (--r7,extsym+2047),r3 + mov.w (--r1,extsym+1),r1 + mov.b (--r8,extsym+1004),r4 + mov.w (--r14,extsym-1444),r2 + mov.b (--r5,extsym-927),r4 EOF # Finally, generate the .d file. |