aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/d10v-elf/t-sp.s
blob: 84f9ad48676670ae717dbb47de9d1a107adb9923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.include "t-macros.i"

	start

;;; Read/Write values to SPU/SPI

	loadpsw2 0
	ldi sp, 0xdead
	loadpsw2 PSW_SM
	ldi sp, 0xbeef
	
	loadpsw2 0
	check 1 sp 0xdead
	loadpsw2 PSW_SM
	check 2 sp 0xbeef

	exit0