diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2003-09-05 07:18:27 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2003-09-05 07:18:27 +0000 |
commit | d50879074249f8af4961f2722b7bd189d017bc1e (patch) | |
tree | 9882dbf52e1ec2c640d52909ed2d81485d81890a /gas/testsuite | |
parent | ceae570b2169c3122a1cb921a88f0ef9485d9b9c (diff) | |
download | fsf-binutils-gdb-d50879074249f8af4961f2722b7bd189d017bc1e.zip fsf-binutils-gdb-d50879074249f8af4961f2722b7bd189d017bc1e.tar.gz fsf-binutils-gdb-d50879074249f8af4961f2722b7bd189d017bc1e.tar.bz2 |
gas/
* config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
gas/testsuite/
* gas/frv/reloc1.[sd]: New test.
* gas/frv/allinsn.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/frv/allinsn.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/frv/reloc1.d | 21 | ||||
-rw-r--r-- | gas/testsuite/gas/frv/reloc1.s | 14 |
4 files changed, 41 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 54324dd..b001c5c 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-09-05 Richard Sandiford <rsandifo@redhat.com> + + * gas/frv/reloc1.[sd]: New test. + * gas/frv/allinsn.exp: Run it. + 2003-09-04 Nick Clifton <nickc@redhat.com> * gas/v850/v850e1.s: New test source file. diff --git a/gas/testsuite/gas/frv/allinsn.exp b/gas/testsuite/gas/frv/allinsn.exp index 29a742f..30cdf67 100644 --- a/gas/testsuite/gas/frv/allinsn.exp +++ b/gas/testsuite/gas/frv/allinsn.exp @@ -2,4 +2,5 @@ if [istarget frv*-*-*] { run_dump_test "allinsn" + run_dump_test "reloc1" } diff --git a/gas/testsuite/gas/frv/reloc1.d b/gas/testsuite/gas/frv/reloc1.d new file mode 100644 index 0000000..9d7d88f --- /dev/null +++ b/gas/testsuite/gas/frv/reloc1.d @@ -0,0 +1,21 @@ +#objdump: -dr + +.* elf32-frv + +Disassembly.*: + +.* <begin>: +.*: 80 88 00 00 * nop +.*: 80 88 00 00 * nop +.* <f1>: +.*: 80 88 00 00 * nop +.*: 80 88 00 00 * nop +.*: 80 88 00 00 * nop +.* <f2>: +.*: 80 3c 00 00 * call.* + .*: R_FRV_LABEL24 f1 +.*: c0 1a 00 00 * bra.* + .*: R_FRV_LABEL16 f1 +.*: fe 3f ff fe * call .* <f2> +.*: c0 1a ff fd * bra .* <f2> + \.\.\. diff --git a/gas/testsuite/gas/frv/reloc1.s b/gas/testsuite/gas/frv/reloc1.s new file mode 100644 index 0000000..5a5ee18 --- /dev/null +++ b/gas/testsuite/gas/frv/reloc1.s @@ -0,0 +1,14 @@ + .globl f1 +begin: + nop + nop +f1: + nop + nop + nop +f2: + call f1 + bra f1 + call f2 + bra f2 + .space 16 |