[llvm] [BOLT][AArch64] Fix adr-relaxation.s test (PR #143151)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 07:52:07 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: Paschalis Mpeis (paschalis-mpeis)

<details>
<summary>Changes</summary>

On some AArch64 machines the cold `foo` had a `mov` instruction before adrp.

```
<foo.cold.0>:
      mov     x0, #<!-- -->0x0                // =0
      adrp    x1, 0x600000 <_start>
      add     x1, x1, #<!-- -->0x14
      ret
```

---
Full diff: https://github.com/llvm/llvm-project/pull/143151.diff


1 Files Affected:

- (modified) bolt/test/AArch64/adr-relaxation.s (+1-1) 


``````````diff
diff --git a/bolt/test/AArch64/adr-relaxation.s b/bolt/test/AArch64/adr-relaxation.s
index a643a62339ba3..b96ae0aba383c 100644
--- a/bolt/test/AArch64/adr-relaxation.s
+++ b/bolt/test/AArch64/adr-relaxation.s
@@ -37,7 +37,7 @@ foo:
   mov  x0, #0x0
 .L2:
 # CHECK-FOO: <foo.cold.0>:
-# CHECK-FOO-NEXT: adrp
+# CHECK-FOO: adrp
 # CHECK-FOO-NEXT: add
   adr x1, foo
   ret  x30

``````````

</details>


https://github.com/llvm/llvm-project/pull/143151


More information about the llvm-commits mailing list