[llvm] [llvm-mc] Make -x86-asm-syntax=intel also affect output printing (PR #186317)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 12 23:02:33 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 171192 tests passed
* 3036 tests skipped
* 5 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.MC/AArch64/cyclone-movi-bug.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple aarch64-apple-ios -mcpu=cyclone /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/cyclone-movi-bug.s 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/AArch64/Output/cyclone-movi-bug.s.tmp.log | /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/cyclone-movi-bug.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple aarch64-apple-ios -mcpu=cyclone /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/cyclone-movi-bug.s
# 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/cyclone-movi-bug.s
# .---redirected output from '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/MC/AArch64/Output/cyclone-movi-bug.s.tmp.log'
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/cyclone-movi-bug.s:8:5: warning: instruction movi.2d with immediate #0 may not function correctly on this CPU, converting to equivalent movi.16b
# | movi.2d v3, #0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/cyclone-movi-bug.s:9:5: warning: instruction movi.2d with immediate #0 may not function correctly on this CPU, converting to equivalent movi.16b
# | movi v7.2d, #0
# | ^
# `-----------------------------
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/cyclone-movi-bug.s:4:11: error: CHECK: expected string not found in input
# | ; CHECK: movi v3.16b, #0
# | ^
# | <stdin>:1:1: note: scanning from here
# |
# | ^
# | <stdin>:2:2: note: possible intended match here
# | movi.16b v3, #0
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AArch64/cyclone-movi-bug.s
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1:
# | check:4'0 X error: no match found
# | 2: movi.16b v3, #0
# | check:4'0 ~~~~~~~~~~~~~~~~~
# | check:4'1 ? possible intended match
# | 3: movi.16b v7, #0
# | check:4'0 ~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.MC/AsmParser/directive_seh.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple x86_64-pc-win32 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple x86_64-pc-win32 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s
# 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/AsmParser/directive_seh.s
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple x86_64-pc-win32 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s -output-asm-variant=1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple x86_64-pc-win32 -x86-asm-syntax=intel | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple x86_64-pc-win32 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s -output-asm-variant=1
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple x86_64-pc-win32 -x86-asm-syntax=intel
# 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/AsmParser/directive_seh.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s:20:10: error: CHECK: expected string not found in input
# | # CHECK: .seh_savereg %rsi, 16
# | ^
# | <stdin>:16:20: note: scanning from here
# | .seh_stackalloc 24
# | ^
# | <stdin>:18:2: note: possible intended match here
# | .seh_savereg rsi, 16
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/directive_seh.s
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 11: .endef
# | 12: .seh_proc func
# | 13: func:
# | 14: .seh_pushframe @code
# | 15: sub rsp, 24
# | 16: .seh_stackalloc 24
# | check:20'0 X error: no match found
# | 17: mov qword ptr [rsp + 16], rsi
# | check:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: .seh_savereg rsi, 16
# | check:20'0 ~~~~~~~~~~~~~~~~~~~~~~
# | check:20'1 ? possible intended match
# | 19: .seh_savereg rsi, 16
# | check:20'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 20: movups xmmword ptr [rsp], xmm8
# | check:20'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: .seh_savexmm xmm8, 0
# | check:20'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 22: .seh_savexmm xmm8, 0
# | check:20'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 23: push rbx
# | check:20'0 ~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.MC/AsmParser/invalid-asm-variant.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --disassemble -triple=x86_64 --output-asm-variant=2 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/invalid-asm-variant.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/AsmParser/invalid-asm-variant.s
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc --disassemble -triple=x86_64 --output-asm-variant=2 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/invalid-asm-variant.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/AsmParser/invalid-asm-variant.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/invalid-asm-variant.s:3:10: error: CHECK: expected string not found in input
# | //CHECK: error: unable to create instruction printer for target triple 'x86_64' with assembly variant 2.
# | ^
# | <stdin>:1:1: note: scanning from here
# | error: unable to create instruction printer for target triple 'x86_64' with assembly variant 2
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/AsmParser/invalid-asm-variant.s
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: error: unable to create instruction printer for target triple 'x86_64' with assembly variant 2
# | check:3 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.MC/Disassembler/AArch64/arm64-crypto.txt</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple arm64-apple-darwin -mattr=crypto --disassemble < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Disassembler/AArch64/arm64-crypto.txt | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Disassembler/AArch64/arm64-crypto.txt
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple arm64-apple-darwin -mattr=crypto --disassemble
# 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/Disassembler/AArch64/arm64-crypto.txt
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Disassembler/AArch64/arm64-crypto.txt:19:10: error: CHECK: expected string not found in input
# | # CHECK: aese v0.16b, v1.16b
# | ^
# | <stdin>:1:1: note: scanning from here
# | aese.16b v0, v1
# | ^
# | <stdin>:1:2: note: possible intended match here
# | aese.16b v0, v1
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/Disassembler/AArch64/arm64-crypto.txt
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: aese.16b v0, v1
# | check:19'0 X~~~~~~~~~~~~~~~~ error: no match found
# | check:19'1 ? possible intended match
# | 2: aesd.16b v0, v1
# | check:19'0 ~~~~~~~~~~~~~~~~~
# | 3: aesmc.16b v0, v1
# | check:19'0 ~~~~~~~~~~~~~~~~~~
# | 4: aesimc.16b v0, v1
# | check:19'0 ~~~~~~~~~~~~~~~~~~~
# | 5: sha1c.4s q0, s1, v2
# | check:19'0 ~~~~~~~~~~~~~~~~~~~~~
# | 6: sha1p.4s q0, s1, v2
# | check:19'0 ~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.MC/SystemZ/insn-good-zos-pcrel.s</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple s390x-ibm-zos -show-encoding -emit-gnuas-syntax-on-zos=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/SystemZ/insn-good-zos-pcrel.s | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/SystemZ/insn-good-zos-pcrel.s
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-mc -triple s390x-ibm-zos -show-encoding -emit-gnuas-syntax-on-zos=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/SystemZ/insn-good-zos-pcrel.s
# 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/SystemZ/insn-good-zos-pcrel.s
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/SystemZ/insn-good-zos-pcrel.s:4:9: error: CHECK: expected string not found in input
# | *CHECK: brcl 0, FOO * encoding: [0xc0,0x04,A,A,A,A]
# | ^
# | <stdin>:1:1: note: scanning from here
# |
# | ^
# | <stdin>:2:2: note: possible intended match here
# | brcl 0,FOO * encoding: [0xc0,0x04,A,A,A,A]
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/MC/SystemZ/insn-good-zos-pcrel.s
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1:
# | check:4'0 X error: no match found
# | 2: brcl 0,FOO * encoding: [0xc0,0x04,A,A,A,A]
# | check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:4'1 ? possible intended match
# | 3: * fixup A - offset: 2, value: FOO+2, kind: FK_390_PC32DBL
# | check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: jlnop FOO * encoding: [0xc0,0x04,A,A,A,A]
# | check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5: * fixup A - offset: 2, value: FOO+2, kind: FK_390_PC32DBL
# | check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6:
# | check:4'0 ~
# | 7: jle FOO * encoding: [0xc0,0x84,A,A,A,A]
# | check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</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/186317
More information about the llvm-commits
mailing list