Skip to content

Commit 686ec6c

Browse files
[BOLT][AArch64] Fix adr-relaxation.s test (#143151)
On some AArch64 machines the splitting was inconsistent. This causes cold `foo` to have a `mov` instruction before adrp. ``` <foo.cold.0>: mov x0, #0x0 // =0 adrp x1, 0x600000 <_start> add x1, x1, #0x14 ret ``` This patch removes the `mov` instruction right above .L2, making splitting deterministic.
1 parent 32ac7dc commit 686ec6c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bolt/test/AArch64/adr-relaxation.s

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ foo:
3434
.cfi_startproc
3535
cmp x1, x11
3636
b.hi .L2
37-
mov x0, #0x0
3837
.L2:
3938
# CHECK-FOO: <foo.cold.0>:
4039
# CHECK-FOO-NEXT: adrp

0 commit comments

Comments
 (0)