* opcode/arc-opc.c (insert_base): Modify ls_operand[LS_OFFSET] to reflect the
authorNick Clifton <nickc@redhat.com>
Mon, 22 Nov 2004 17:44:03 +0000 (17:44 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 22 Nov 2004 17:44:03 +0000 (17:44 +0000)
  change to the short immediate syntax.
* gas/arc/ld.s: Add check of load of a long immediate.
* gas/arc/ld.d: Add expected disassembly.

gas/testsuite/ChangeLog
gas/testsuite/gas/arc/ld.d
gas/testsuite/gas/arc/ld.s
opcodes/ChangeLog
opcodes/arc-opc.c

index 24d0b3c37968593bf2327687e810598cfc3a14c6..89317661adb444ce1308d024067babf0b97ddd31 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-22  Ravi Ramaseshan  <ravi.ramaseshan@codito.com>
+
+       * gas/arc/ld.s: Add check of load of a long immediate.
+       * gas/arc/ld.d: Add expected disassembly.
+       
 2004-11-22  Hans-Peter Nilsson  <hp@axis.com>
 
        * gas/all/gas.exp: Run dg-runtest for all err-*.s and warn-*.s.
index b989f8b8683c630a424a922c652c2c7e3c9cc174..ad03a4e711350c0ebe485500c8847438388377af 100644 (file)
@@ -11,3 +11,4 @@ Disassembly of section .text:
    8:  08 88 21 00     00218808     ld.a       r1,\[r3,r4\]
    c:  05 06 21 00     00210605     ldw.x      r1,\[r2,r3\]
   10:  0d 88 41 00     0041880d     ldw.x.a    r2,\[r3,r4\]
+  14:  00 80 1f 08     081f8000     ld         r0,\[0\]
index 36edf9cae630a624edf04d2a57703300f7fe3c19..51cfd7436c9da50eb0a2083e803a4ab6ad02cd76 100644 (file)
@@ -5,3 +5,4 @@
        ld.a    r1,[r3,r4]
        ldw.x   r1,[r2,r3]
        ldw.x.a r2,[r3,r4]
+       ld      r0,[0]
index 67abe554aed24c0b822539f4c6fc218ed074dddf..5a19bb5d6c7203751872e080f7b51a20cd26a970 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-22  Ravi Ramaseshan  <ravi.ramaseshan@codito.com>
+
+       * opcode/arc-opc.c (insert_base): Modify ls_operand[LS_OFFSET] to
+       reflect the change to the short immediate syntax.
+
 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
 
        * or32-opc.c (debug): Warning fix.
index 614fff033f7e33dc68e451403f2093d908b56fdd..5c74e973fe99381beeb2a0fd9065271328e7e106 100644 (file)
@@ -938,6 +938,7 @@ insert_base (insn, operand, mods, reg, value, errmsg)
       shimm_p = 1;
       shimm = value;
       ls_operand[LS_BASE] = OP_SHIMM;
+      ls_operand[LS_OFFSET] = OP_SHIMM;
     }
   else
     {