mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-10 03:02:30 +00:00
* gas/sh/pcrel-coff.s: New file.
* gas/sh/pcrel-coff.d: Likewise. * gas/sh/basic.exp: For coff, don't do dsp test, and a modified pcrel test.
This commit is contained in:
parent
6c3eb89063
commit
77b6388204
@ -1,3 +1,10 @@
|
||||
Wed May 22 14:26:07 2002 J"orn Rennecke <joern.rennecke@superh.com>
|
||||
|
||||
* gas/sh/pcrel-coff.s: New file.
|
||||
* gas/sh/pcrel-coff.d: Likewise.
|
||||
* gas/sh/basic.exp: For coff, don't do dsp test,
|
||||
and a modified pcrel test.
|
||||
|
||||
2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||
|
||||
* gas/mips/rol64.s: New file, test of drol, dror macros.
|
||||
|
@ -88,12 +88,19 @@ proc do_fp {} {
|
||||
if [istarget sh*-*-*] then {
|
||||
# Test the basic instruction parser.
|
||||
do_fp
|
||||
# Test DSP instructions
|
||||
run_dump_test "dsp"
|
||||
|
||||
# coff is missing information about the machine type, so everything is
|
||||
# dumped as sh4.
|
||||
if {[istarget sh*-*coff] || [istarget sh*-hms]} then {
|
||||
run_dump_test "pcrel-coff"
|
||||
} else {
|
||||
# Test DSP instructions
|
||||
run_dump_test "dsp"
|
||||
|
||||
run_dump_test "pcrel"
|
||||
}
|
||||
|
||||
if {[istarget sh*-*elf] || [istarget sh*-linux*]} then {
|
||||
run_dump_test "pic"
|
||||
}
|
||||
|
||||
run_dump_test "pcrel"
|
||||
}
|
||||
|
27
gas/testsuite/gas/sh/pcrel-coff.d
Normal file
27
gas/testsuite/gas/sh/pcrel-coff.d
Normal file
@ -0,0 +1,27 @@
|
||||
#as: -big
|
||||
#objdump: -d
|
||||
#name: PC-relative loads
|
||||
|
||||
.*: file format .*sh.*
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
00000000 <code>:
|
||||
0: d1 03 mov\.l 10 <litpool>,r1 ! 0xfffffff0
|
||||
2: d1 03 mov\.l 10 <litpool>,r1 ! 0xfffffff0
|
||||
4: c7 02 mova 10 <litpool>,r0
|
||||
6: 61 02 mov\.l @r0,r1
|
||||
8: d1 01 mov\.l 10 <litpool>,r1 ! 0xfffffff0
|
||||
a: 01 03 bsrf r1
|
||||
c: 00 09 nop
|
||||
e: 00 09 nop
|
||||
|
||||
00000010 <litpool>:
|
||||
10: ff ff \.word 0xffff
|
||||
12: ff f0 fadd fr15,fr15
|
||||
14: 00 09 nop
|
||||
16: 00 09 nop
|
||||
18: 00 09 nop
|
||||
1a: 00 09 nop
|
||||
1c: 00 09 nop
|
||||
1e: 00 09 nop
|
14
gas/testsuite/gas/sh/pcrel-coff.s
Normal file
14
gas/testsuite/gas/sh/pcrel-coff.s
Normal file
@ -0,0 +1,14 @@
|
||||
.text
|
||||
|
||||
.p2align 2
|
||||
code:
|
||||
mov.l litpool, r1
|
||||
mov.l @(14,pc), r1
|
||||
mova @(litpool-.,pc), r0
|
||||
mov.l @r0,r1
|
||||
mov.l @(litpool-.,pc), r1
|
||||
bsrf r1
|
||||
nop
|
||||
nop
|
||||
litpool:
|
||||
.long code - .
|
Loading…
x
Reference in New Issue
Block a user