arm: Support pac_key_* register operand for MRS/MSR in Armv8.1-M Mainline
[binutils-gdb.git] / sim / testsuite / sh / macl.s
blob39b3b7d604b269fa2864ef21113629964f7eec7d
1 # sh testcase for mac.l
2 # mach: all
3 # as(sh): -defsym sim_cpu=0
4 # as(shdsp): -defsym sim_cpu=1 -dsp
6 .include "testutils.inc"
8 start
9 # force S-bit clear
10 clrs
12 init:
13 # Prime {MACL, MACH} to #1.
14 mov #1, r0
15 dmulu.l r0, r0
17 # Set up addresses.
18 mov.l pfour00, r0 ! 85
19 mov.l pfour12, r1 ! 17
21 test:
22 mac.l @r0+, @r1+
24 check:
25 # Check result.
26 assert_sreg 0, mach
27 assert_sreg 85*17+1, macl
29 # Ensure post-increment occurred.
30 assertreg0 four00+4
31 assertreg four12+4, r1
33 doubleinc:
34 mov.l pfour00, r0
35 mac.l @r0+, @r0+
36 assertreg0 four00+8
39 pass
40 exit 0
42 .align 1
43 four00:
44 .long 85
45 .long 2
46 four12:
47 .long 17
48 .long 3
50 .align 2
51 pfour00:
52 .long four00
53 pfour12:
54 .long four12