From 686ec6cfe86367c43dccd83d7e6e2bac7e6a73a0 Mon Sep 17 00:00:00 2001 From: Paschalis Mpeis Date: Wed, 11 Jun 2025 08:24:10 +0100 Subject: [PATCH] [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. ``` : 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. --- bolt/test/AArch64/adr-relaxation.s | 1 - 1 file changed, 1 deletion(-) diff --git a/bolt/test/AArch64/adr-relaxation.s b/bolt/test/AArch64/adr-relaxation.s index a643a62339ba..864650c3287d 100644 --- a/bolt/test/AArch64/adr-relaxation.s +++ b/bolt/test/AArch64/adr-relaxation.s @@ -34,7 +34,6 @@ foo: .cfi_startproc cmp x1, x11 b.hi .L2 - mov x0, #0x0 .L2: # CHECK-FOO: : # CHECK-FOO-NEXT: adrp