aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChao-ying Fu <fu@mips.com>2009-01-06 19:24:28 +0000
committerChao-ying Fu <fu@mips.com>2009-01-06 19:24:28 +0000
commit30b7ec5838da9a05ff6b175006f1dbdb99a770a1 (patch)
tree402aa355674b0e55de1563c749a193202ad10e5d /gas
parent2486447610b91efedbc68e5708ffd9e0606733b5 (diff)
downloadgdb-30b7ec5838da9a05ff6b175006f1dbdb99a770a1.zip
gdb-30b7ec5838da9a05ff6b175006f1dbdb99a770a1.tar.gz
gdb-30b7ec5838da9a05ff6b175006f1dbdb99a770a1.tar.bz2
2009-01-06 Chao-ying Fu <fu@mips.com>
* gas/mips/jalr.s, gas/mips/jalr.l: Add more tests for jalr and jalr.hb.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/jalr.l5
-rw-r--r--gas/testsuite/gas/mips/jalr.s12
3 files changed, 21 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 89e9047..99312eb 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-06 Chao-ying Fu <fu@mips.com>
+
+ * gas/mips/jalr.s, gas/mips/jalr.l: Add more tests for jalr
+ and jalr.hb.
+
2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
AVX Programming Reference (December, 2008)
diff --git a/gas/testsuite/gas/mips/jalr.l b/gas/testsuite/gas/mips/jalr.l
index fe4a5b9..787bc9c 100644
--- a/gas/testsuite/gas/mips/jalr.l
+++ b/gas/testsuite/gas/mips/jalr.l
@@ -1,5 +1,8 @@
.*: Assembler messages:
.*:1: Error: illegal operands.*
.*:2: Error: a destination register must be supplied.*
-.*:3: Error: source and destinationations must be different.*
+.*:3: Error: source and destination must be different.*
+.*:10: Error: illegal operands.*
+.*:11: Error: a destination register must be supplied.*
+.*:12: Error: source and destination must be different.*
diff --git a/gas/testsuite/gas/mips/jalr.s b/gas/testsuite/gas/mips/jalr.s
index fa63e43..9f66790 100644
--- a/gas/testsuite/gas/mips/jalr.s
+++ b/gas/testsuite/gas/mips/jalr.s
@@ -2,3 +2,15 @@
jalr $31
jalr $7, $7
jalr $31, $2
+ jalr $0
+ jalr $0, $31
+ jalr $31, $0
+
+ .set mips32
+ jalr.hb $32
+ jalr.hb $31
+ jalr.hb $7, $7
+ jalr.hb $31, $2
+ jalr.hb $0
+ jalr.hb $0, $31
+ jalr.hb $31, $0