In "mov. [bwl] reg, @ -reg", added a special case test
using the same register.
+2021-05-04 Yoshinori Sato <ysato@users.sourceforge.jp>
+
+ * movb.s: Add special case predec test.
+ * movw.s: Likewise.
+ * movl.s: Likewise.
+
2021-04-08 Mike Frysinger <vapier@gentoo.org>
* allinsn.exp (arch): Delete.
-# Hitachi H8 testcase 'mov.w'
+# Hitachi H8 testcase 'mov.b'
# mach(): h8300h h8300s h8sx
# as(h8300h): --defsym sim_cpu=1
# as(h8300s): --defsym sim_cpu=2
beq .Lnext48
fail
.Lnext48:
+ ;; Special case in same register
+ ;; CCR confirmation omitted
+ mov.l #byte_dst+1, er1
+ mov.l er1, er0
+ mov.b r0l, @-er0
+ mov.b @byte_dst, r0l
+ cmp.b r1l, r0l
+ beq .Lnext47
+ fail
+.Lnext47:
mov.b #0, r0l
mov.b r0l, @byte_dst ; zero it again for the next use.
fail1:
fail
-
\ No newline at end of file
beq .Lnext48
fail
.Lnext48:
+ ;; Special case in same register
+ ;; CCR confirmation omitted
+ mov.l #long_dst+4, er1
+ mov.l er1, er0
+ mov.l er0, @-er0
+ mov.l @long_dst, er0
+ cmp.l er1, er0
+ beq .Lnext47
+ fail
+.Lnext47:
mov.l #0, er0
mov.l er0, @long_dst ; zero it again for the next use.
beq .Lnext48
fail
.Lnext48:
+ ;; Special case in same register
+ ;; CCR confirmation omitted
+ mov.l #word_dst+2, er1
+ mov.l er1, er0
+ mov.w r0, @-er0
+ mov.w @word_dst, r0
+ cmp.w r1, r0
+ beq .Lnext47
+ fail
+.Lnext47:
mov.w #0, r0
mov.w r0, @word_dst ; zero it again for the next use.