summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/sh64/media/maddl.cgs
blob: 4bdf54638665c66b0c2c2e4d007ac84c251e6d7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# sh testcase for madd.l $rm, $rn, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64

	.include "media/testutils.inc"

	start

init:
	pta wrong, tr0

maddl:
	# Load { 1 2 } into r0.
	_packl 1, 2, r0
	# Load { 3 4 } into r1.
	_packl 3, 4, r1
	
	# Add slices to produce { 4 6 }.
	madd.l r0, r1, r2

	_packl 4, 6, r3
	bne r2, r3, tr0

okay:
	pass

wrong:
	fail