aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/v850eq-elf/t-macros.i
blob: c8882ee391ea69eb3ddad77a0d75e47480fe03ae (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
	.macro start
	.text
	.globl _start
_start:
	.endm

	.macro exit47
	mov 1, r6
	addi 47, r0, r7
	trap 31
	.endm

	.macro exit0
	mov 1, r6
	mov 0, r7
	trap 31
	.endm

	.macro load32 reg val
	jr 1f
	.align 2
1:	jarl 2f, \reg 
	.long \val
2:	ld.w 0[\reg], \reg
	.endm