OSDN Git Service

2009-01-06 Chao-ying Fu <fu@mips.com>
authorChao-ying Fu <fu@mips.com>
Tue, 6 Jan 2009 19:24:28 +0000 (19:24 +0000)
committerChao-ying Fu <fu@mips.com>
Tue, 6 Jan 2009 19:24:28 +0000 (19:24 +0000)
* gas/mips/jalr.s, gas/mips/jalr.l: Add more tests for jalr
and jalr.hb.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/jalr.l
gas/testsuite/gas/mips/jalr.s

index 89e9047..99312eb 100644 (file)
@@ -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)
index fe4a5b9..787bc9c 100644 (file)
@@ -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.*
 
index fa63e43..9f66790 100644 (file)
@@ -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