mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
* gas/all/fwdexp.d, * gas/all/fwdexp.s: New test.
* gas/all/gas.exp: Run it.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-09-29 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* gas/all/fwdexp.d, * gas/all/fwdexp.s: New test.
|
||||||
|
* gas/all/gas.exp: Run it.
|
||||||
|
|
||||||
2010-09-29 Alan Modra <amodra@gmail.com>
|
2010-09-29 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* lib/gas-defs.exp (is_elf_format): Merge with binutils and ld versions.
|
* lib/gas-defs.exp (is_elf_format): Merge with binutils and ld versions.
|
||||||
|
11
gas/testsuite/gas/all/fwdexp.d
Normal file
11
gas/testsuite/gas/all/fwdexp.d
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#objdump: -rs -j .text
|
||||||
|
#name: forward expression
|
||||||
|
|
||||||
|
.*: .*
|
||||||
|
|
||||||
|
RELOCATION RECORDS FOR .*
|
||||||
|
OFFSET +TYPE +VALUE
|
||||||
|
0+ .*(\.data|i)(|\+0xf+e|\+0xf+c|\+0xf+8)
|
||||||
|
|
||||||
|
Contents of section .*
|
||||||
|
0+ (0+|feff|fffe|fcffffff|fffffffc|f8ffffff ffffffff|ffffffff fffffff8) .*
|
6
gas/testsuite/gas/all/fwdexp.s
Normal file
6
gas/testsuite/gas/all/fwdexp.s
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.data
|
||||||
|
i:
|
||||||
|
|
||||||
|
.text
|
||||||
|
.dc.a i + (. - .L1)
|
||||||
|
.L1:
|
@ -86,6 +86,25 @@ case $target_triplet in {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# aout relocs are often weird, so is mep and mips-ecoff. don't bother testing
|
||||||
|
# som doesn't use a .text section
|
||||||
|
# mmix doesn't like .L1:
|
||||||
|
# ti addresses aren't octets.
|
||||||
|
if { ![is_aout_format] } {
|
||||||
|
case $target_triplet in {
|
||||||
|
{ hppa-*-hpux* } { }
|
||||||
|
{ mep-*-* } { }
|
||||||
|
{ mips*-*-ecoff* } { }
|
||||||
|
{ mmix-*-* } { }
|
||||||
|
{ tic30*-*-* } { }
|
||||||
|
{ tic4x*-*-* } { }
|
||||||
|
{ tic54x*-*-* } { }
|
||||||
|
default {
|
||||||
|
run_dump_test fwdexp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# .set works differently on some targets.
|
# .set works differently on some targets.
|
||||||
# most of the tests won't work on targets that set linkrelax.
|
# most of the tests won't work on targets that set linkrelax.
|
||||||
# 4 octet bytes confuse address matching on ti targets.
|
# 4 octet bytes confuse address matching on ti targets.
|
||||||
|
Reference in New Issue
Block a user