diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2003-06-25 15:31:59 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2003-06-25 15:31:59 +0000 |
commit | 2d0d09ca83b867fe61190d259d2ed6c139c983f6 (patch) | |
tree | 80c448ff465c6c4d187b14b6e9d184c8fc925a9e /gas | |
parent | 8d1e520a64346de732712873fa90ca941bcab72d (diff) | |
download | fsf-binutils-gdb-2d0d09ca83b867fe61190d259d2ed6c139c983f6.zip fsf-binutils-gdb-2d0d09ca83b867fe61190d259d2ed6c139c983f6.tar.gz fsf-binutils-gdb-2d0d09ca83b867fe61190d259d2ed6c139c983f6.tar.bz2 |
include/opcode/
* h8300.h (IMM2_NS, IMM8_NS, IMM16_NS): Remove.
(IMM8U, IMM8U_NS): Define.
(h8_opcodes): Use IMM8U_NS for mov.[wl] #xx:8,@yy.
gas/
* config/tc-h8300.c (get_specific): Allow ':8' to be used for
unsigned 8-bit operands.
gas/testsuite/
* gas/h8300/h8sx_mov_imm.[sd]: Add tests for mov.[wl] #xx:8,@yy.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-h8300.c | 1 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/h8300/h8sx_mov_imm.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/h8300/h8sx_mov_imm.s | 12 |
5 files changed, 36 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 0769843..810841a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-06-25 Richard Sandiford <rsandifo@redhat.com> + + * config/tc-h8300.c (get_specific): Allow ':8' to be used for + unsigned 8-bit operands. + 2003-06-24 Nick Clifton <nickc@redhat.com> * read.c (s_comm): Change error message to assume an unsigned size diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 6a6e3a8..646b69e 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -1302,6 +1302,7 @@ get_specific (instruction, operands, size) #endif if (((x_size == L_16 && op_size == L_16U) + || (x_size == L_8 && op_size == L_8U) || (x_size == L_3 && op_size == L_3NZ)) /* We're deliberately more permissive for ABS modes. */ && (op_mode == ABS diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 4245fd2..57a7903 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-06-25 Richard Sandiford <rsandifo@redhat.com> + + * gas/h8300/h8sx_mov_imm.[sd]: Add tests for mov.[wl] #xx:8,@yy. + 2003-06-24 Richard Sandiford <rsandifo@redhat.com> * gas/h8300/h8300.exp (h8sx_disp2, h8sx_rtsl, h8sx_mov_imm): Move... diff --git a/gas/testsuite/gas/h8300/h8sx_mov_imm.d b/gas/testsuite/gas/h8300/h8sx_mov_imm.d index 84fc12a..15a5ff9 100644 --- a/gas/testsuite/gas/h8300/h8sx_mov_imm.d +++ b/gas/testsuite/gas/h8300/h8sx_mov_imm.d @@ -289,5 +289,19 @@ Disassembly of section \.text: .*: 00 00 48 00 * .*: 00 01 80 00 * .*: R_H8_DIR32 bar +.*: 79 74 ff ff * 79 74 ff ff 00 00 * mov.w #0xffff,@r0 +.*: 00 00 * +.*: 01 5d 00 00 * 01 5d 00 00 * mov.w #0x0,@r0 +.*: 01 5d 00 01 * 01 5d 00 01 * mov.w #0x1,@r0 +.*: 01 5d 00 ff * 01 5d 00 ff * mov.w #0xff,@r0 +.*: 79 74 01 00 * 79 74 01 00 00 00 * mov.w #0x100,@r0 +.*: 00 00 * +.*: 7a 74 ff ff * 7a 74 ff ff ff ff 00 00 * mov.l #0xffffffff,@r0 +.*: ff ff 00 00 * +.*: 01 0d 00 00 * 01 0d 00 00 * mov.l #0x0,@r0 +.*: 01 0d 00 01 * 01 0d 00 01 * mov.l #0x1,@r0 +.*: 01 0d 00 ff * 01 0d 00 ff * mov.l #0xff,@r0 +.*: 7a 7c 01 00 * 7a 7c 01 00 00 00 * mov.l #0x100,@r0 +.*: 00 00 * .* <.*>: \.\.\. diff --git a/gas/testsuite/gas/h8300/h8sx_mov_imm.s b/gas/testsuite/gas/h8300/h8sx_mov_imm.s index b2e29b8..8ec8e85 100644 --- a/gas/testsuite/gas/h8300/h8sx_mov_imm.s +++ b/gas/testsuite/gas/h8300/h8sx_mov_imm.s @@ -93,6 +93,18 @@ mov.l #.L1,@0x18000 mov.l #bar,@0x18000 + mov.w #-1,@er0 + mov.w #0,@er0 + mov.w #1,@er0 + mov.w #0xff,@er0 + mov.w #0x100,@er0 + + mov.l #-1,@er0 + mov.l #0,@er0 + mov.l #1,@er0 + mov.l #0xff,@er0 + mov.l #0x100,@er0 + .globl bar bar: .space 16 |