aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/subw.cgs
blob: 12a12293b3c3ab37049a31ecfef7b4fc3cb9369f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# cr16 testcase for subw $sr,$dr
# mach(): cr16

	.include "testutils.inc"

	start

	.global subw
subw:

	movw $0x1234, r4
	movw $0x1111, r5

	subw r5, r4

	test_h_gr r4, 0x123

	pass