From: Chao-ying Fu Date: Tue, 6 Jan 2009 19:24:28 +0000 (+0000) Subject: 2009-01-06 Chao-ying Fu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30b7ec5838da9a05ff6b175006f1dbdb99a770a1;p=binutils-gdb.git 2009-01-06 Chao-ying Fu * gas/mips/jalr.s, gas/mips/jalr.l: Add more tests for jalr and jalr.hb. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 89e9047d395..99312ebdda1 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-01-06 Chao-ying Fu + + * gas/mips/jalr.s, gas/mips/jalr.l: Add more tests for jalr + and jalr.hb. + 2009-01-06 H.J. Lu AVX Programming Reference (December, 2008) diff --git a/gas/testsuite/gas/mips/jalr.l b/gas/testsuite/gas/mips/jalr.l index fe4a5b9cdd0..787bc9c4067 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 fa63e43be79..9f6679029b1 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