diff options
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/jalr.l | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/jalr.s | 12 |
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 |