[llvm] [X86] Invalid assembly given inverted meaning (PR #190460)

via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 4 06:57:50 PDT 2026


github-actions[bot] wrote:

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

* 133062 tests passed
* 3061 tests skipped
* 3 tests failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/X86/ms-inline-asm-variables-x64-1-reg.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=x86_64-unknown-unknown -relocation-model=pic C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-1-reg.ll -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-1-reg.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-unknown-unknown -relocation-model=pic 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-1-reg.ll' -o -
# .---command stderr------------
# | <inline asm>:2:26: error: scale factor in address cannot be negative
# |         mov eax, dword ptr [rbp - 12][rax]
# |                                 ^
# | <inline asm>:3:21: error: scale factor in address cannot be negative
# |         mov dword ptr [rbp - 12][rax], eax
# |                            ^
# `-----------------------------
# 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\CodeGen\X86\ms-inline-asm-variables-x64-1-reg.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-1-reg.ll:71:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: movl -12(%rbp,%rax), %eax
# |               ^
# | <stdin>:50:1: note: scanning from here
# | 
# | ^
# | <stdin>:51:2: note: possible intended match here
# |  movl 258(%rbp,%rbx), %ebx
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-1-reg.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           45:  movq %rsp, %rbp 
# |           46:  .cfi_def_cfa_register %rbp 
# |           47:  pushq %rbx 
# |           48:  .cfi_offset %rbx, -24 
# |           49:  #APP 
# |           50:  
# | next:71'0     X error: no match found
# |           51:  movl 258(%rbp,%rbx), %ebx 
# | next:71'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:71'1      ?                          possible intended match
# |           52:  movl %ebx, 816(%rbp,%rbx) 
# | next:71'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           53:  movl %eax, 35(%rbp,%rbx) 
# | next:71'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           54:  
# | next:71'0     ~
# |           55:  #NO_APP 
# | next:71'0     ~~~~~~~~~
# |           56:  movl $2, -12(%rbp) 
# | next:71'0     ~~~~~~~~~~~~~~~~~~~~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.CodeGen/X86/ms-inline-asm-variables-x64-nopic.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=x86_64-unknown-unknown C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-nopic.ll -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-nopic.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-unknown-unknown 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-nopic.ll' -o -
# .---command stderr------------
# | <inline asm>:2:26: error: scale factor in address cannot be negative
# |         mov eax, dword ptr [rbp - 12][rax]
# |                                 ^
# | <inline asm>:3:21: error: scale factor in address cannot be negative
# |         mov dword ptr [rbp - 12][rax], eax
# |                            ^
# `-----------------------------
# 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\CodeGen\X86\ms-inline-asm-variables-x64-nopic.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-nopic.ll:81:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: movl -12(%rbp,%rax), %eax
# |               ^
# | <stdin>:53:1: note: scanning from here
# | 
# | ^
# | <stdin>:54:2: note: possible intended match here
# |  movl 258(%rbp,%rbx), %ebx
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x64-nopic.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           48:  movq %rsp, %rbp 
# |           49:  .cfi_def_cfa_register %rbp 
# |           50:  pushq %rbx 
# |           51:  .cfi_offset %rbx, -24 
# |           52:  #APP 
# |           53:  
# | next:81'0     X error: no match found
# |           54:  movl 258(%rbp,%rbx), %ebx 
# | next:81'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:81'1      ?                          possible intended match
# |           55:  movl %ebx, 816(%rbp,%rbx) 
# | next:81'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           56:  movl %eax, 35(%rbp,%rbx) 
# | next:81'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           57:  
# | next:81'0     ~
# |           58:  #NO_APP 
# | next:81'0     ~~~~~~~~~
# |           59:  popq %rbx 
# | next:81'0     ~~~~~~~~~~~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.CodeGen/X86/ms-inline-asm-variables-x86-1-reg.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=i386-unknown-unknown C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x86-1-reg.ll -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=X86 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x86-1-reg.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=i386-unknown-unknown 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x86-1-reg.ll' -o -
# .---command stderr------------
# | <inline asm>:2:26: error: scale factor in address cannot be negative
# |         mov eax, dword ptr [ebp - 8][eax]
# |                                 ^
# | <inline asm>:3:21: error: scale factor in address cannot be negative
# |         mov dword ptr [ebp - 8][eax], eax
# |                            ^
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=X86 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x86-1-reg.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x86-1-reg.ll:102:13: error: X86-NEXT: expected string not found in input
# | ; X86-NEXT: movl -8(%ebp,%eax), %eax
# |             ^
# | <stdin>:49:1: note: scanning from here
# | 
# | ^
# | <stdin>:50:2: note: possible intended match here
# |  movl 262(%ebp,%ebx), %ebx
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\ms-inline-asm-variables-x86-1-reg.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            44:  .cfi_def_cfa_register %ebp 
# |            45:  pushl %ebx 
# |            46:  pushl %eax 
# |            47:  .cfi_offset %ebx, -12 
# |            48:  #APP 
# |            49:  
# | next:102'0     X error: no match found
# |            50:  movl 262(%ebp,%ebx), %ebx 
# | next:102'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:102'1      ?                          possible intended match
# |            51:  movl %ebx, 820(%ebp,%ebx) 
# | next:102'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            52:  movl %eax, 39(%ebp,%ebx) 
# | next:102'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            53:  
# | next:102'0     ~
# |            54:  #NO_APP 
# | next:102'0     ~~~~~~~~~
# |            55:  movl $2, -8(%ebp) 
# | next:102'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/190460


More information about the llvm-commits mailing list