aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/mulw.cgs
blob: cbd4552e338539ab9d75b5158e003532407811a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# cr16 testcase for mulw reg reg
# mach(): cr16 

	.include "testutils.inc"

	start

	.global mulw
mulw:
	movw $0x1234,r4
	movw $0x1234,r5

	mulw r4, r5
	cmpw $0x5a90, r5
	beq ok1
not_ok:
	fail

ok1:
	mulw $0x1234, r4
	test_h_gr r4, 0x5a90

	pass