aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/aarch64_relocs.s
blob: 0aa3d68f1a72847c7067d9598ed15f169ac7cce3 (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
.text

test_R_AARCH64_MOVW_UABS_G0:
	movz	x4, :abs_g0:abs_0x1234
	movz	x4, :abs_g0:abs_0x1234 + 4

test_R_AARCH64_MOVW_UABS_G0_NC:
	movz	x4, :abs_g0_nc:abs_0x1234
	movz	x4, :abs_g0_nc:abs_0x1234 + 0x45000

test_R_AARCH64_MOVW_UABS_G1:
	movz	x4, :abs_g1:abs_0x1234 - 4
	movz	x4, :abs_g1:abs_0x11000
	movz	x4, :abs_g1:abs_0x45000 + 0x20010

test_R_AARCH64_MOVW_UABS_G1_NC:
	movz	x4, :abs_g1_nc:abs_0x1234 - 4
	movz	x4, :abs_g1_nc:abs_0x11000
	movz	x4, :abs_g1_nc:abs_0x45000 + 0x100020010

test_R_AARCH64_MOVW_UABS_G2:
	movz	x4, :abs_g2:abs_0x45000 + 0x20010
	movz	x4, :abs_g2:abs_0x3600010000 + 0x100020010

test_R_AARCH64_MOVW_UABS_G2_NC:
	movz	x4, :abs_g2_nc:abs_0x45000 + 0x20010
	movz	x4, :abs_g2_nc:abs_0x3600010000 + 0x3000100020010

test_R_AARCH64_MOVW_UABS_G3:
	movz	x4, :abs_g3:abs_0x3600010000 + 0x100020010
	movz	x4, :abs_g3:abs_0x3600010000 + 0x3000100020010

test_R_AARCH64_MOVW_SABS_G0:
	movz	x4, :abs_g0_s:abs_0x1234 + 4
	movz	x4, :abs_g0_s:abs_0x1234 - 0x2345

test_R_AARCH64_MOVW_SABS_G1:
	movz	x4, :abs_g1_s:abs_0x1234 - 0x2345
	movz	x4, :abs_g1_s:abs_0x45000 + 0x20010
	movz	x4, :abs_g1_s:abs_0x45000 - 0x56000

test_R_AARCH64_MOVW_SABS_G2:
	movz	x4, :abs_g2_s:abs_0x45000 + 0x20010
	movz	x4, :abs_g2_s:abs_0x3600010000 + 0x100020010
	movz	x4, :abs_g2_s:abs_0x3600010000 - 0x4400010000