aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm/thumb1-movs.s
blob: 80acfd5caf6662a2714b3c6cb473a58613db551a (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
	.text
	.arch armv6s-m
	.syntax unified
	.global	_start
	.thumb_func
	.type	_start, %function
_start:
	.thumb_func
	.type	thumb1, %function
thumb1:
	movs r0, #:upper8_15:#thumb3
	movs r1, #:upper0_7:#thumb3
	movs r2, #:lower8_15:#thumb1
	movs r3, #:lower0_7:#thumb1
	movs r4, #:lower0_7:#thumb3
	movs r5, #:lower8_15:#thumb3
	movs r6, #:upper0_7:#thumb1
	movs r7, #:upper8_15:#thumb1
	.thumb_func
	.type	thumb2, %function
thumb2:
	movs r0, #:upper8_15:#(thumb3 + 0)
	movs r1, #:upper0_7:#(thumb2 + 1)
	movs r2, #:lower8_15:#(var1 + 255)
	movs r3, #:lower0_7:#var1
	movs r7, #:upper8_15:#var1 + 4
	movs r6, #:upper0_7:#var2
	movs r5, #:lower8_15:#var2 + 0xff
	movs r4, #:lower0_7:#var2 - (-1)
var1:
	.byte 1
var2:
	.byte 2

	.section .far, "ax", %progbits
	.thumb_func
	.type	thumb3, %function
thumb3:
	movs r0, #:upper8_15:#thumb1
	movs r1, #:upper0_7:#thumb2
	movs r2, #:lower8_15:#thumb3
	movs r3, #:lower0_7:#thumb1