[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: Linux-->
# :penguin: Linux x64 Test Results
* 169885 tests passed
* 3068 tests skipped
* 3 tests failed
## Failed Tests
(click on a test name to see its output)
### lldb-shell
<details>
<summary>lldb-shell.Commands/command-disassemble-aarch64-color.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple aarch64-linux-gnueabihf /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-color.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-color.s.tmp --mattr=+all
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple aarch64-linux-gnueabihf /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-color.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-color.s.tmp --mattr=+all
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb --no-lldbinit -S /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init-quiet /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-color.s.tmp -o "settings set use-color true" -o "disassemble -n fn" -o exit 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-color.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb --no-lldbinit -S /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init-quiet /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-color.s.tmp -o 'settings set use-color true' -o 'disassemble -n fn' -o exit
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-color.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-color.s:31:15: error: CHECK-NEXT: expected string not found in input
# | # CHECK-NEXT: [0x18] <+24>: sysp [0;31m#0x0[0m, c2, c0, [0;31m#0x0[0m, [0;36mx0[0m, [0;36mx1[0m
# | ^
# | <stdin>:14:104: note: scanning from here
# | command-disassemble-aarch64-color.s.tmp[0x14] <+20>: smin [0;36mx0[0m, [0;36mx0[0m, [0;31m#0x0[0m
# | ^
# | <stdin>:16:40: note: possible intended match here
# | command-disassemble-aarch64-color.s.tmp[0x1c] <+28>: sdot [0;36mv0[0m.2s, [0;36mv1[0m.8b, [0;36mv2[0m.8b
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-color.s
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 9: command-disassemble-aarch64-color.s.tmp[0x0] <+0>: aesd [0;36mv0[0m.16b, [0;36mv0[0m.16b
# | 10: command-disassemble-aarch64-color.s.tmp[0x4] <+4>: bfadd [0;36mz23[0m.h, [0;36mp3[0m/m, [0;36mz23[0m.h, [0;36mz13[0m.h
# | 11: command-disassemble-aarch64-color.s.tmp[0x8] <+8>: bfdot [0;36mv2[0m.2s, [0;36mv3[0m.4h, [0;36mv4[0m.4h
# | 12: command-disassemble-aarch64-color.s.tmp[0xc] <+12>: brb iall
# | 13: command-disassemble-aarch64-color.s.tmp[0x10] <+16>: crc32b [0;36mw0[0m, [0;36mw0[0m, [0;36mw0[0m
# | 14: command-disassemble-aarch64-color.s.tmp[0x14] <+20>: smin [0;36mx0[0m, [0;36mx0[0m, [0;31m#0x0[0m
# | next:31'0 X error: no match found
# | 15: command-disassemble-aarch64-color.s.tmp[0x18] <+24>: <unknown>
# | next:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: command-disassemble-aarch64-color.s.tmp[0x1c] <+28>: sdot [0;36mv0[0m.2s, [0;36mv1[0m.8b, [0;36mv2[0m.8b
# | next:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:31'1 ? possible intended match
# | 17: command-disassemble-aarch64-color.s.tmp[0x20] <+32>: fmmla [0;36mz0[0m.s, [0;36mz1[0m.s, [0;36mz2[0m.s
# | next:31'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: (lldb) exit
# | next:31'0 ~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>lldb-shell.Commands/command-disassemble-aarch64-extensions.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple aarch64-linux-gnueabihf /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-extensions.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-extensions.s.tmp --mattr=+all
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -filetype=obj -triple aarch64-linux-gnueabihf /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-extensions.s -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-extensions.s.tmp --mattr=+all
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb --no-lldbinit -S /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init-quiet /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-extensions.s.tmp -o "disassemble -n fn" -o exit 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-extensions.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/lldb --no-lldbinit -S /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/lit-lldb-init-quiet /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb/test/Shell/Commands/Output/command-disassemble-aarch64-extensions.s.tmp -o 'disassemble -n fn' -o exit
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-extensions.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-extensions.s:75:15: error: CHECK-NEXT: expected string not found in input
# | # CHECK-NEXT: sysp #0x0, c2, c0, #0x0, x0, x1
# | ^
# | <stdin>:13:74: note: scanning from here
# | command-disassemble-aarch64-extensions.s.tmp[0x14] <+20>: smin x0, x0, #0x0
# | ^
# | <stdin>:24:41: note: possible intended match here
# | command-disassemble-aarch64-extensions.s.tmp[0x40] <+64>: ld64b x0, [x13]
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/Shell/Commands/command-disassemble-aarch64-extensions.s
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 8: command-disassemble-aarch64-extensions.s.tmp[0x0] <+0>: aesd v0.16b, v0.16b
# | 9: command-disassemble-aarch64-extensions.s.tmp[0x4] <+4>: bfadd z23.h, p3/m, z23.h, z13.h
# | 10: command-disassemble-aarch64-extensions.s.tmp[0x8] <+8>: bfdot v2.2s, v3.4h, v4.4h
# | 11: command-disassemble-aarch64-extensions.s.tmp[0xc] <+12>: brb iall
# | 12: command-disassemble-aarch64-extensions.s.tmp[0x10] <+16>: crc32b w0, w0, w0
# | 13: command-disassemble-aarch64-extensions.s.tmp[0x14] <+20>: smin x0, x0, #0x0
# | next:75'0 X~~ error: no match found
# | 14: command-disassemble-aarch64-extensions.s.tmp[0x18] <+24>: <unknown>
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 15: command-disassemble-aarch64-extensions.s.tmp[0x1c] <+28>: sdot v0.2s, v1.8b, v2.8b
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: command-disassemble-aarch64-extensions.s.tmp[0x20] <+32>: fmmla z0.s, z1.s, z2.s
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: command-disassemble-aarch64-extensions.s.tmp[0x24] <+36>: fmmla z0.d, z1.d, z2.d
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: command-disassemble-aarch64-extensions.s.tmp[0x28] <+40>: cfinv
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 19: command-disassemble-aarch64-extensions.s.tmp[0x2c] <+44>: fcvt d0, s0
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 20: command-disassemble-aarch64-extensions.s.tmp[0x30] <+48>: fabs h1, h2
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: command-disassemble-aarch64-extensions.s.tmp[0x34] <+52>: fmlal v0.2s, v1.2h, v2.2h
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 22: command-disassemble-aarch64-extensions.s.tmp[0x38] <+56>: bc.eq 0xc4
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 23: command-disassemble-aarch64-extensions.s.tmp[0x3c] <+60>: smmla v1.4s, v16.16b, v31.16b
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 24: command-disassemble-aarch64-extensions.s.tmp[0x40] <+64>: ld64b x0, [x13]
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:75'1 ? possible intended match
# | 25: command-disassemble-aarch64-extensions.s.tmp[0x44] <+68>: ldaddab w0, w0, [sp]
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 26: command-disassemble-aarch64-extensions.s.tmp[0x48] <+72>: ldclrp x1, x2, [x11]
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: command-disassemble-aarch64-extensions.s.tmp[0x4c] <+76>: irg x0, x0
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: command-disassemble-aarch64-extensions.s.tmp[0x50] <+80>: cpyfp [x0]!, [x1]!, x2!
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: command-disassemble-aarch64-extensions.s.tmp[0x54] <+84>: pacia x0, x1
# | next:75'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### LLVM
<details>
<summary>LLVM.MC/AArch64/armv9-sysp-diagnostics.s</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 4
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple aarch64 -mattr=+d128,+tlb-rmi,+xs -show-encoding /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/armv9-sysp-diagnostics.s -o - 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/armv9-sysp-diagnostics.s --check-prefix=ERRORS
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple aarch64 -mattr=+d128,+tlb-rmi,+xs -show-encoding /home/gha/actions-runner/_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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple=aarch64 -filetype=obj -mattr=+d128 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/armv9-sysp-diagnostics.s | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d --mattr=+d128 --no-print-imm-hex - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/armv9-sysp-diagnostics.s --check-prefix=DISASM
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d --mattr=+d128 --no-print-imm-hex -
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump: error: '-': The file was not recognized as a valid object file
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_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