Support Intel SM4 AVX10.2 extension
[binutils-gdb.git] / sim / testsuite / sh / pmuls.s
blob4cff8787f4e9fa13947d43d59b88665db386638e
1 # sh testcase for pmuls
2 # mach: shdsp
3 # as(shdsp): -defsym sim_cpu=1 -dsp
5 .include "testutils.inc"
7 start
8 set_grs_a5a5
9 lds r0, a0
10 pcopy a0, a1
11 lds r0, x0
12 lds r0, x1
13 lds r0, y0
14 lds r0, y1
15 pcopy x0, m0
16 pcopy y1, m1
18 # 2 x 2 = 8 (?)
19 # (I don't understand why the result is x2,
20 # but that's what it says in the manual...)
21 mov #2, r0
22 shll16 r0
23 lds r0, y0
24 lds r0, y1
25 pmuls y0, y1, a0
27 assert_sreg 8, a0
29 set_greg 0xa5a5a5a5, r0
30 test_grs_a5a5
31 pass
32 exit 0