23
23
.syntax unified
24
24
25
25
# CHECK-TYPE: {{[0-9a-f]+}} R_ARM_CALL call_target_arm
26
- # CHECK-INSTR: 00000000 <call_site >:
26
+ # CHECK-INSTR: 00000000 <call_site_a2a >:
27
27
# CHECK-INSTR: 0: ebfffffe bl
28
- # CHECK-INSTR: 4: ebfffffe bl
29
- # CHECK-INSTR: 0000000c <call_target_arm>
30
- # CHECK-INSTR: 00000010 <call_target_thumb>
31
- # jitlink-check: decode_operand(call_site + 0, 0) = call_target_arm - next_pc(call_site)
32
- # jitlink-check: decode_operand(call_site + 4, 0) = call_target_thumb - (call_site + 12)
33
- .globl call_site
34
- .type call_site,%function
28
+ # CHECK-INSTR: 00000008 <call_site_a2t>:
29
+ # CHECK-INSTR: 8: ebfffffe bl
30
+ # CHECK-INSTR: 00000010 <call_target_arm>
31
+ # CHECK-INSTR: 00000014 <call_target_thumb>
32
+ # jitlink-check: decode_operand(call_site_a2a, 0) = call_target_arm - next_pc(call_site_a2a)
33
+ # jitlink-check: decode_operand(call_site_a2t, 0) = call_target_thumb - next_pc(call_site_a2t)
34
+ .globl call_site_a2a
35
+ .type call_site_a2a, %function
35
36
.p2align 2
36
- call_site :
37
+ call_site_a2a :
37
38
bl call_target_arm
39
+ bx lr
40
+ .size call_site_a2a, .-call_site_a2a
41
+
42
+ .globl call_site_a2t
43
+ .type call_site_a2t,%function
44
+ .p2align 2
45
+ call_site_a2t:
38
46
bl call_target_thumb
39
47
bx lr
40
- .size call_site , .-call_site
48
+ .size call_site_a2t , .-call_site_a2t
41
49
42
50
.globl call_target_arm
43
51
.type call_target_arm,%function
@@ -57,9 +65,9 @@ call_target_thumb:
57
65
.code 32
58
66
59
67
# CHECK-TYPE: {{[0-9a-f]+}} R_ARM_JUMP24 jump24_target
60
- # CHECK-INSTR: 00000014 <jump24_site>:
61
- # CHECK-INSTR: 14 : eafffffe b
62
- # CHECK-INSTR: 00000018 <jump24_target>
68
+ # CHECK-INSTR: 00000018 <jump24_site>:
69
+ # CHECK-INSTR: 18 : eafffffe b
70
+ # CHECK-INSTR: 0000001c <jump24_target>
63
71
# jitlink-check: decode_operand(jump24_site, 0) = jump24_target - next_pc(jump24_site)
64
72
.globl jump24_site
65
73
.type jump24_site,%function
0 commit comments