2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
# sh testcase for movua
|
|
|
|
# mach: all
|
|
|
|
# as(sh): -defsym sim_cpu=0
|
|
|
|
# as(shdsp): -defsym sim_cpu=1 -dsp
|
|
|
|
|
|
|
|
.include "testutils.inc"
|
|
|
|
|
|
|
|
start
|
|
|
|
movua_1:
|
|
|
|
set_grs_a5a5
|
|
|
|
mov.l srcp, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x03020100
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x00010203
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x04030201
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x01020304
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x05040302
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x02030405
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x06050403
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x03040506
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x07060504
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x04050607
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x08070605
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x05060708
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x09080706
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x06070809
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x0a090807
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x0708090a
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x0b0a0908
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x08090a0b
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x0c0b0a09
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x090a0b0c
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x0d0c0b0a
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x0a0b0c0d
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x0e0d0c0b
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x0b0c0d0e
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x0f0e0d0c
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x0c0d0e0f
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
|
|
|
|
assertreg src+12, r1
|
|
|
|
test_gr_a5a5 r2
|
|
|
|
test_gr_a5a5 r3
|
|
|
|
test_gr_a5a5 r4
|
|
|
|
test_gr_a5a5 r5
|
|
|
|
test_gr_a5a5 r6
|
|
|
|
test_gr_a5a5 r7
|
|
|
|
test_gr_a5a5 r8
|
|
|
|
test_gr_a5a5 r9
|
|
|
|
test_gr_a5a5 r10
|
|
|
|
test_gr_a5a5 r11
|
|
|
|
test_gr_a5a5 r12
|
|
|
|
test_gr_a5a5 r13
|
|
|
|
test_gr_a5a5 r14
|
|
|
|
|
|
|
|
bra movua_4:
|
|
|
|
nop
|
|
|
|
|
|
|
|
.align 0
|
|
|
|
src: .byte 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
|
|
|
|
.align 2
|
|
|
|
srcp: .long src
|
|
|
|
|
|
|
|
movua_4:
|
|
|
|
set_grs_a5a5
|
|
|
|
mov.l srcp2, r1
|
|
|
|
movua.l @r1+, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x03020100
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x00010203
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg src+4, r1
|
|
|
|
|
|
|
|
mov.l srcp2, r1
|
|
|
|
add #1, r1
|
|
|
|
movua.l @r1+, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x04030201
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x01020304
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg src+5, r1
|
|
|
|
|
|
|
|
mov.l srcp2, r1
|
|
|
|
add #2, r1
|
|
|
|
movua.l @r1+, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x05040302
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x02030405
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg src+6, r1
|
|
|
|
|
|
|
|
mov.l srcp2, r1
|
|
|
|
add #3, r1
|
|
|
|
movua.l @r1+, r0
|
2004-09-14 05:02:33 +08:00
|
|
|
.ifdef LITTLE
|
|
|
|
assertreg0 0x06050403
|
|
|
|
.else
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg0 0x03040506
|
2004-09-14 05:02:33 +08:00
|
|
|
.endif
|
2004-01-07 Michael Snyder <msnyder@redhat.com>
* dmxy.s, fipr.s, fpchg.s, ldrc.s, loop.s, movli.s, movua.s,
movxy.s, pabs.s, pclr.s, prnd.s, psub.s, pswap.s: New files.
* allinsn.exp: Add new tests.
* testutils.inc (set_sr_bit): Add argument.
(set_greg): Add .align directives.
2004-01-10 03:47:36 +08:00
|
|
|
assertreg src+7, r1
|
|
|
|
|
|
|
|
test_gr_a5a5 r2
|
|
|
|
test_gr_a5a5 r3
|
|
|
|
test_gr_a5a5 r4
|
|
|
|
test_gr_a5a5 r5
|
|
|
|
test_gr_a5a5 r6
|
|
|
|
test_gr_a5a5 r7
|
|
|
|
test_gr_a5a5 r8
|
|
|
|
test_gr_a5a5 r9
|
|
|
|
test_gr_a5a5 r10
|
|
|
|
test_gr_a5a5 r11
|
|
|
|
test_gr_a5a5 r12
|
|
|
|
test_gr_a5a5 r13
|
|
|
|
test_gr_a5a5 r14
|
|
|
|
|
|
|
|
pass
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
srcp2: .long src
|
|
|
|
|