[llvm] [AArch64][llvm] Tighten SYSP parsing; don't disassemble invalid encodings (PR #182410)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 16:55:56 PST 2026


github-actions[bot] wrote:

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

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

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

### LLVM
<details>
<summary>LLVM.MC/AArch64/armv9-sysp-diagnostics.s</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 4
not c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -triple aarch64 -mattr=+d128,+tlb-rmi,+xs -show-encoding C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s -o - 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s --check-prefix=ERRORS
# executed command: not 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -triple aarch64 -mattr=+d128,+tlb-rmi,+xs -show-encoding 'C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s' --check-prefix=ERRORS
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe -triple=aarch64 -filetype=obj -mattr=+d128 < C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s    | c:\_work\llvm-project\llvm-project\build\bin\llvm-objdump.exe -d --mattr=+d128 --no-print-imm-hex -    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s --check-prefix=DISASM
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-mc.exe' -triple=aarch64 -filetype=obj -mattr=+d128
# .---command stderr------------
# | <stdin>:13:26: error: expected second odd register of a consecutive same-size even/odd register pair
# | sysp #0, c8, c0, #0, x0, x2
# |                          ^
# | <stdin>:15:24: error: expected comma
# | sysp #0, c8, c0, #0, x0
# |                        ^
# | <stdin>:17:22: error: expected first even register of a consecutive same-size even/odd register pair
# | sysp #0, c8, c0, #0, x1, x2
# |                      ^
# | <stdin>:19:29: error: xzr must be followed by xzr
# | sysp #0, c8, c0, #0, x31, x0
# |                             ^
# | <stdin>:21:30: error: xzr must be followed by xzr
# | sysp #0, c8, c0, #0, xzr, x30
# |                              ^
# | <stdin>:23:25: error: expected comma
# | sysp #0, c8, c0, #0, xzr
# |                         ^
# | <stdin>:25:26: error: expected register operand
# | sysp #0, c8, c0, #0, xzr,
# |                          ^
# | <stdin>:46:7: error: instruction requires: tlb-rmi, d128
# | tlbip RVAE3IS
# |       ^
# | <stdin>:48:7: error: instruction requires: tlb-rmi, d128
# | tlbip RVAE3IS,
# |       ^
# | <stdin>:50:12: error: expected register identifier
# | tlbip VAE3,
# |            ^
# | <stdin>:52:20: error: expected second odd register of a consecutive same-size even/odd register pair
# | tlbip IPAS2E1, x4, x8
# |                    ^
# | <stdin>:52:22: error: specified tlbip op requires a pair of registers
# | tlbip IPAS2E1, x4, x8
# |                      ^
# | <stdin>:54:7: error: instruction requires: tlb-rmi, d128
# | tlbip RVAE3, x11, x11
# |       ^
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-objdump.exe' -d --mattr=+d128 --no-print-imm-hex -
# .---command stderr------------
# | c:\_work\llvm-project\llvm-project\build\bin\llvm-objdump.exe: error: '-': The file was not recognized as a valid object file
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s' --check-prefix=DISASM
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\MC\AArch64\armv9-sysp-diagnostics.s --check-prefix=DISASM
# `-----------------------------
# 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/182410


More information about the llvm-commits mailing list