diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-26 21:18:15 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2000-11-26 21:18:15 +0000 |
commit | ae3e85dd270c1dba87ac81cd431ebc6a44a28e44 (patch) | |
tree | 3a962511d10f783ae1fa82202a25ae8b088f396e /gas/testsuite | |
parent | 639aa4f72f2d6abfb62c46d24ac699d9b52724b6 (diff) | |
download | gdb-ae3e85dd270c1dba87ac81cd431ebc6a44a28e44.zip gdb-ae3e85dd270c1dba87ac81cd431ebc6a44a28e44.tar.gz gdb-ae3e85dd270c1dba87ac81cd431ebc6a44a28e44.tar.bz2 |
Fix movw/movb operands for 68HC12
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/m68hc11/opers12.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/m68hc11/opers12.s | 10 |
3 files changed, 27 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e5527d5..4bb3ecc 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr> + + * gas/m68hc11/opers12.s: New test for movw operands. + * gas/m68hc11/opers12.d: Likewise. + 2000-11-24 Nick Clifton <nickc@redhat.com> * arm.exp: Run tests for xscale as well as arm. diff --git a/gas/testsuite/gas/m68hc11/opers12.d b/gas/testsuite/gas/m68hc11/opers12.d index fec02eb..2fbd3dd 100644 --- a/gas/testsuite/gas/m68hc11/opers12.d +++ b/gas/testsuite/gas/m68hc11/opers12.d @@ -67,4 +67,15 @@ Disassembly of section .text: 0+0b6 <L1\+0xad> trap #64 0+0b8 <L1\+0xaf> trap #128 0+0ba <L1\+0xb1> trap #255 -0+0bc <L2> rts +0+0bc <L2> movw 1,X, 2,X +0+0c0 <L2\+0x4> movw 0+0ffff <L2\+0xff43>, 0000ffff <L2\+0xff43> +0+0c6 <L2\+0xa> movw 0+0ffff <L2\+0xff43>, 1,X +0+0cb <L2\+0xf> movw #0+0ffff <L2\+0xff43>, 1,X +0+0d0 <L2\+0x14> movw 0+03 <start\+0x3>, 0+08 <start\+0x8> +0+0d6 <L2\+0x1a> movw #0+03 <start\+0x3>, 0+03 <start\+0x3> +0+0dc <L2\+0x20> movw #0+03 <start\+0x3>, 1,X +0+0e1 <L2\+0x25> movw 0+03 <start\+0x3>, 1,X +0+0e6 <L2\+0x2a> movw 0+03 <start\+0x3>, 2,X +0+0eb <L2\+0x2f> movw 0+04 <start\+0x4>, -2,X +0+0f0 <L2\+0x34> rts + diff --git a/gas/testsuite/gas/m68hc11/opers12.s b/gas/testsuite/gas/m68hc11/opers12.s index dcf53d1..b4a9c24 100644 --- a/gas/testsuite/gas/m68hc11/opers12.s +++ b/gas/testsuite/gas/m68hc11/opers12.s @@ -69,4 +69,14 @@ L1: ldy ,x trap #0x80 trap #255 L2: + movw 1,x,2,x + movw -1,-1 + movw -1,1,x + movw #-1,1,x + movw 3,8 + movw #3,3 + movw #3,1,x + movw 3,1,x + movw 3,+2,x + movw 4,-2,x rts |