[llvm] [llvm-mca][Darwin] Fix crash on .subsections_via_symbols in asm input (PR #182694)

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 21 13:25:48 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 131153 tests passed
* 2949 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.tools/llvm-mca/AArch64/Apple/darwin-subsections-via-symbols.s</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llvm-mca.exe -mtriple=arm64-apple-macos -mcpu=apple-m4 -iterations=1 < C:\_work\llvm-project\llvm-project\llvm\test\tools\llvm-mca\AArch64\Apple\darwin-subsections-via-symbols.s | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\tools\llvm-mca\AArch64\Apple\darwin-subsections-via-symbols.s
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mca.exe' -mtriple=arm64-apple-macos -mcpu=apple-m4 -iterations=1
# .---command stdout------------
# | Iterations:        1
# | Instructions:      1
# | Total Cycles:      3
# | Total uOps:        1
# | 
# | Dispatch Width:    6
# | uOps Per Cycle:    0.33
# | IPC:               0.33
# | Block RThroughput: 1.0
# | 
# | 
# | Instruction Info:
# | [1]: #uOps
# | [2]: Latency
# | [3]: RThroughput
# | [4]: MayLoad
# | [5]: MayStore
# | [6]: HasSideEffects (U)
# | 
# | [1]    [2]    [3]    [4]    [5]    [6]    Instructions:
# |  1      0     1.00                  U     ret
# | 
# | 
# | Resources:
# | [0.0] - CyUnitB
# | [0.1] - CyUnitB
# | [1]   - CyUnitBR
# | [2.0] - CyUnitFloatDiv
# | [2.1] - CyUnitFloatDiv
# | [3.0] - CyUnitI
# | [3.1] - CyUnitI
# | [3.2] - CyUnitI
# | [3.3] - CyUnitI
# | [4]   - CyUnitID
# | [5]   - CyUnitIM
# | [6.0] - CyUnitIS
# | [6.1] - CyUnitIS
# | [7]   - CyUnitIntDiv
# | [8.0] - CyUnitLS
# | [8.1] - CyUnitLS
# | [9.0] - CyUnitV
# | [9.1] - CyUnitV
# | [9.2] - CyUnitV
# | [10]  - CyUnitVC
# | [11]  - CyUnitVD
# | [12.0] - CyUnitVM
# | [12.1] - CyUnitVM
# | 
# | 
# | Resource pressure per iteration:
# | [0.0]  [0.1]  [1]    [2.0]  [2.1]  [3.0]  [3.1]  [3.2]  [3.3]  [4]    [5]    [6.0]  [6.1]  [7]    [8.0]  [8.1]  [9.0]  [9.1]  [9.2]  [10]   [11]   [12.0] [12.1] 
# |  -     1.00   1.00    -      -      -      -      -     1.00    -      -      -      -      -      -      -      -      -      -      -      -      -      -     
# | 
# | Resource pressure by instruction:
# | [0.0]  [0.1]  [1]    [2.0]  [2.1]  [3.0]  [3.1]  [3.2]  [3.3]  [4]    [5]    [6.0]  [6.1]  [7]    [8.0]  [8.1]  [9.0]  [9.1]  [9.2]  [10]   [11]   [12.0] [12.1] Instructions:
# |  -     1.00   1.00    -      -      -      -      -     1.00    -      -      -      -      -      -      -      -      -      -      -      -      -      -     ret
# `-----------------------------
# .---command stderr------------
# | warning: found a return instruction in the input assembly sequence.
# | note: program counter updates are ignored.
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\tools\llvm-mca\AArch64\Apple\darwin-subsections-via-symbols.s'
# .---command stderr------------
# | error: no check strings found with prefix 'CHECK:'
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list