From 7b5a9c328064314737207219d038abbba402d96a Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 22 Nov 2004 17:44:03 +0000 Subject: [PATCH] * opcode/arc-opc.c (insert_base): Modify ls_operand[LS_OFFSET] to reflect the 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 | 5 +++++ gas/testsuite/gas/arc/ld.d | 1 + gas/testsuite/gas/arc/ld.s | 1 + opcodes/ChangeLog | 5 +++++ opcodes/arc-opc.c | 1 + 5 files changed, 13 insertions(+) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 24d0b3c37..89317661a 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-11-22 Ravi Ramaseshan + + * 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 * gas/all/gas.exp: Run dg-runtest for all err-*.s and warn-*.s. diff --git a/gas/testsuite/gas/arc/ld.d b/gas/testsuite/gas/arc/ld.d index b989f8b86..ad03a4e71 100644 --- a/gas/testsuite/gas/arc/ld.d +++ b/gas/testsuite/gas/arc/ld.d @@ -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\] diff --git a/gas/testsuite/gas/arc/ld.s b/gas/testsuite/gas/arc/ld.s index 36edf9cae..51cfd7436 100644 --- a/gas/testsuite/gas/arc/ld.s +++ b/gas/testsuite/gas/arc/ld.s @@ -5,3 +5,4 @@ ld.a r1,[r3,r4] ldw.x r1,[r2,r3] ldw.x.a r2,[r3,r4] + ld r0,[0] diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 67abe554a..5a19bb5d6 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2004-11-22 Ravi Ramaseshan + + * 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 * or32-opc.c (debug): Warning fix. diff --git a/opcodes/arc-opc.c b/opcodes/arc-opc.c index 614fff033..5c74e973f 100644 --- a/opcodes/arc-opc.c +++ b/opcodes/arc-opc.c @@ -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 { -- 2.11.4.GIT