diff options
author | Nick Clifton <nickc@redhat.com> | 2007-09-25 15:31:05 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-09-25 15:31:05 +0000 |
commit | cac27205672ae12d3b8f46f59b0adbd9dcdd3a1b (patch) | |
tree | b87c45c7b8030ae40ba1a36d56f78f8730f36220 /gas/testsuite | |
parent | 45781998591c49a9b2e6b48c94ade060b6ab37aa (diff) | |
download | ppe42-binutils-cac27205672ae12d3b8f46f59b0adbd9dcdd3a1b.tar.gz ppe42-binutils-cac27205672ae12d3b8f46f59b0adbd9dcdd3a1b.zip |
* config/tc-m68k.c (LONG_BRANCH_VIA_COND): New.
(BRANCHBWPL, FRAG_VAR_SIZE): New.
(md_relax_table): Add BRANCHBWPL entries.
(m68k_ip): Choose BRANCHBWPL relaxation if necessary.
(md_assemble): Use FRAG_VAR_SIZE.
(md_convert_frag_1): Add BRANCHBWPL cases.
(md_estimate_size_before_relaz): Likewise.
* gas/m68k/br-isaa.d: Dump relocs too.
* gas/m68k/br-isab.d: Likewise.
* gas/m68k/br-isac.d: Likewise. Adjust for long branch relaxation.
Index: gas/config/tc-m68k.c
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/br-isaa.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/br-isab.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/m68k/br-isac.d | 14 |
4 files changed, 21 insertions, 7 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f63e00abe9..b5992282fa 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2007-09-25 Nathan Sidwell <nathan@codesourcery.com> + + * gas/m68k/br-isaa.d: Dump relocs too. + * gas/m68k/br-isab.d: Likewise. + * gas/m68k/br-isac.d: Likewise. Adjust for long branch relaxation. + 2007-09-24 Carlos O'Donell <carlos@codesourcery.com> * gas/mips/align.s, gas/mips/align.d: New test. diff --git a/gas/testsuite/gas/m68k/br-isaa.d b/gas/testsuite/gas/m68k/br-isaa.d index 0b49dc2ea2..cccb484893 100644 --- a/gas/testsuite/gas/m68k/br-isaa.d +++ b/gas/testsuite/gas/m68k/br-isaa.d @@ -1,5 +1,5 @@ #name: br-isaa.d -#objdump: -d +#objdump: -dr #as: -march=isaa -pcrel .*: file format .* @@ -10,6 +10,8 @@ Disassembly of section .text: 0: 4e71 nop 2: 60fc bras 0 <foo> 4: 6000 0000 braw 6 <foo\+0x6> + 6: R_68K_PC16 bar 8: 61f6 bsrs 0 <foo> a: 6100 0000 bsrw c <foo\+0xc> + c: R_68K_PC16 bar e: 4e71 nop diff --git a/gas/testsuite/gas/m68k/br-isab.d b/gas/testsuite/gas/m68k/br-isab.d index 20e093f734..bcac0d22ed 100644 --- a/gas/testsuite/gas/m68k/br-isab.d +++ b/gas/testsuite/gas/m68k/br-isab.d @@ -1,5 +1,5 @@ #name: br-isab.d -#objdump: -d +#objdump: -dr #as: -march=isab -pcrel .*: file format .* @@ -11,6 +11,8 @@ Disassembly of section .text: 2: 61ff ffff fffc bsrl 0 <foo> 8: 60f6 bras 0 <foo> a: 60ff 0000 0000 bral c <foo\+0xc> + c: R_68K_PC32 bar 10: 61ee bsrs 0 <foo> 12: 61ff 0000 0000 bsrl 14 <foo\+0x14> + 14: R_68K_PC32 bar 18: 4e71 nop diff --git a/gas/testsuite/gas/m68k/br-isac.d b/gas/testsuite/gas/m68k/br-isac.d index 126ff464bb..bc927edb88 100644 --- a/gas/testsuite/gas/m68k/br-isac.d +++ b/gas/testsuite/gas/m68k/br-isac.d @@ -1,5 +1,5 @@ #name: br-isac.d -#objdump: -d +#objdump: -dr #as: -march=isac -pcrel .*: file format .* @@ -10,7 +10,11 @@ Disassembly of section .text: 0: 4e71 nop 2: 61ff ffff fffc bsrl 0 <foo> 8: 60f6 bras 0 <foo> - a: 6000 0000 braw c <foo\+0xc> - e: 61f0 bsrs 0 <foo> - 10: 61ff 0000 0000 bsrl 12 <foo\+0x12> - 16: 4e71 nop + a: 66ff 0000 0000 bnel c <foo\+0xc> + c: R_68K_PC32 bar + 10: 67ff 0000 0000 beql 12 <foo\+0x12> + 12: R_68K_PC32 bar + 16: 61e8 bsrs 0 <foo> + 18: 61ff 0000 0000 bsrl 1a <foo\+0x1a> + 1a: R_68K_PC32 bar + 1e: 4e71 nop |