aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/vle-multiseg.s
blob: b0c08862a5338e6e1203656881887bc9149d2c09 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Make up several VLE text sections which the linker script will put into
# separate output sections.  We will then check for separate load segments.
#	.include "mpc5500_usrdefs.inc"
#	.section ".text_vle"

	e_stw    r12, 0x4C(r1)
	e_stw    r11, 0x48(r1)
	e_stw    r10, 0x44(r1)
	e_stw    r9,  0x40(r1)
	e_stw    r8,  0x3C(r1)
	e_stw    r7,  0x38(r1)
	e_stw    r6,  0x34(r1)
	e_stw    r5,  0x30(r1)
	e_stw    r4,  0x2c(r1)

        .globl   IV_table
	.section ".iv_handlers", "ax"
IV_table:
	e_b dummy
	.align 4
	e_b dummy
	.align 4
	e_b dummy
	.align 4
	e_b dummy
	.align 4
	e_b dummy
	.align 4
	e_b dummy
	.align 4
	e_b dummy
	.align 4
	e_b dummy
	.align 4
dummy:
	se_nop
	e_b dummy

	.section ".text_iv", "ax"
	e_lis r3, IV_table@h
	mtivpr r3
	e_li r3, IV_table@l+0x00
	mtivor0 r3
	e_li r3, IV_table@l+0x10
	mtivor1 r3
	e_li r3, IV_table@l+0x20
	mtivor2 r3

	.data
	.long 0xdeadbeef