diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2011-06-23 20:21:38 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2011-06-23 20:21:38 +0000 |
commit | f77ef3e29a6246edee20b5908e99b2c92f245a6b (patch) | |
tree | 41bdae0929facb1bad3db39be83435385315050b /gas/testsuite | |
parent | 6e586cc56592f85535f788391b4f48025311b465 (diff) | |
download | fsf-binutils-gdb-f77ef3e29a6246edee20b5908e99b2c92f245a6b.zip fsf-binutils-gdb-f77ef3e29a6246edee20b5908e99b2c92f245a6b.tar.gz fsf-binutils-gdb-f77ef3e29a6246edee20b5908e99b2c92f245a6b.tar.bz2 |
gas/
PR gas/12915
* config/tc-mips.c (append_insn): Only consider hazards between the
pre-noreorder block and ip.
gas/testsuite/
* gas/mips/pr12915.s, gas/mips/pr12915.d: New test.
* gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/pr12915.d | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/pr12915.s | 5 |
4 files changed, 27 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 087e778..ca62de9 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-06-23 Richard Sandiford <rdsandiford@googlemail.com> + + * gas/mips/pr12915.s, gas/mips/pr12915.d: New test. + * gas/mips/mips.exp: Run it. + 2011-06-21 Sameera Deshpande <sameera.deshpande@arm.com> * gas/arm/vcvt-bad.d: New test. diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 8995518..d51ac43 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -1000,4 +1000,6 @@ if { [istarget mips*-*-vxworks*] } { [mips_arch_list_matching mips32r2] ] ] if $has_newabi { run_dump_test "cfi-n64-1" } + + run_dump_test "pr12915" } diff --git a/gas/testsuite/gas/mips/pr12915.d b/gas/testsuite/gas/mips/pr12915.d new file mode 100644 index 0000000..95e4e2d --- /dev/null +++ b/gas/testsuite/gas/mips/pr12915.d @@ -0,0 +1,15 @@ +#as: -32 -mips1 +#objdump: -dr + +.* + + +Disassembly of section \.text: + +00000000 <\.text>: + 0: 3c1b0000 lui k1,0x0 + 0: R_MIPS_HI16 kernelsp + 4: 8f7b0000 lw k1,0\(k1\) + 4: R_MIPS_LO16 kernelsp + 8: 401c7000 mfc0 gp,c0_epc + c: 279c0004 addiu gp,gp,4 diff --git a/gas/testsuite/gas/mips/pr12915.s b/gas/testsuite/gas/mips/pr12915.s new file mode 100644 index 0000000..6de26ca --- /dev/null +++ b/gas/testsuite/gas/mips/pr12915.s @@ -0,0 +1,5 @@ + lui $27, %hi(kernelsp) + lw $27, %lo(kernelsp)($27) + .set noreorder + mfc0 $28, $14 + addu $28, 4 |