summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/sh64/media/movi.cgs
blob: a01bcae84df372e23ba7d72206db7a48b5fc13fa (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 movi $imm16, $rd -*- Asm -*-
# mach: all
# as: -isa=shmedia
# ld: -m shelf64

	.include "media/testutils.inc"

	start
init:
	pta wrong, tr0

movi0:
	movi 0, r0
	bnei r0, 0, tr0
movi1:
	movi 1, r0
	bnei r0, 1, tr0
movi2:
	movi 23, r0
	bnei r0, 23, tr0
movn:
	movi -1, r0
	addi r0, 1, r0
	bnei r0, 0, tr0

okay:
	pass
wrong:
	fail