aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2009-12-19 00:24:09 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2009-12-19 00:24:09 +0000
commit42853c79aa14e4246cbfa94d41c96375b560cc84 (patch)
tree4e124d19e0db8060b4f9654322e94043b31beaa7
parent7c0fc5246b2cdaa6f12c8693732f05e440c125d0 (diff)
downloadgdb-42853c79aa14e4246cbfa94d41c96375b560cc84.zip
gdb-42853c79aa14e4246cbfa94d41c96375b560cc84.tar.gz
gdb-42853c79aa14e4246cbfa94d41c96375b560cc84.tar.bz2
* gas/mips/eret-2.s: Add an instruction to fill a branch delay
slot. * gas/mips/eret-2.d: Adjust accordingly.
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mips/eret-2.d2
-rw-r--r--gas/testsuite/gas/mips/eret-2.s1
3 files changed, 8 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index e792894..fe52853 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2009-12-19 Maciej W. Rozycki <macro@codesourcery.com>
+ * gas/mips/eret-2.s: Add an instruction to fill a branch delay
+ slot.
+ * gas/mips/eret-2.d: Adjust accordingly.
+
+2009-12-19 Maciej W. Rozycki <macro@codesourcery.com>
+
* gas/mips/aent.d: New test.
* gas/mips/aent.s: Source for the new test.
* gas/mips/mips.exp: Run it.
diff --git a/gas/testsuite/gas/mips/eret-2.d b/gas/testsuite/gas/mips/eret-2.d
index d73dcff..70497f5 100644
--- a/gas/testsuite/gas/mips/eret-2.d
+++ b/gas/testsuite/gas/mips/eret-2.d
@@ -14,5 +14,5 @@ Disassembly of section \.text:
[ 0-9a-f]+: 42000018 eret
[ 0-9a-f]+: 00000000 nop
[ 0-9a-f]+: 1000fffd b [0-9a-f]+ <foo\+0x10>
-[ 0-9a-f]+: 00000000 nop
+[ 0-9a-f]+: 00000006 srlv zero,zero,zero
\.\.\.
diff --git a/gas/testsuite/gas/mips/eret-2.s b/gas/testsuite/gas/mips/eret-2.s
index 0654ad1..6b2a9b9 100644
--- a/gas/testsuite/gas/mips/eret-2.s
+++ b/gas/testsuite/gas/mips/eret-2.s
@@ -8,6 +8,7 @@ foo:
.set noreorder
b 1b
.set reorder
+ srlv $0, $0, $0
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
.space 8