[llvm-branch-commits] [llvm] [TargetLowering][X86] Prefer 'r' over 'm' for foldable "rm" inline as… (PR #229632)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 6 21:20:14 PDT 2026


github-actions[bot] wrote:

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

* 143510 tests passed
* 3454 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/X86/asm-constraints-rm-pressure.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-linux-gnu --regalloc=greedy -verify-machineinstrs < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=GREEDY_RA C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-unknown-linux-gnu --regalloc=greedy -verify-machineinstrs
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=GREEDY_RA 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=x86_64-unknown-linux-gnu --regalloc=fast -verify-machineinstrs < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=FAST_RA C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-unknown-linux-gnu --regalloc=fast -verify-machineinstrs
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=FAST_RA 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll:379:17: error: FAST_RA-NEXT: expected string not found in input
# | ; FAST_RA-NEXT: movq %rcx, {{[-0-9]+}}(%r{{[sb]}}p) # 8-byte Spill
# |                 ^
# | <stdin>:170:23: note: scanning from here
# |  .cfi_offset %rbp, -16
# |                       ^
# | <stdin>:174:2: note: possible intended match here
# |  movq %rax, -16(%rsp) # 8-byte Spill
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\asm-constraints-rm-pressure.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           165:  .cfi_offset %rbx, -56 
# |           166:  .cfi_offset %r12, -48 
# |           167:  .cfi_offset %r13, -40 
# |           168:  .cfi_offset %r14, -32 
# |           169:  .cfi_offset %r15, -24 
# |           170:  .cfi_offset %rbp, -16 
# | next:379'0                          {   search range start (exclusive)
# | next:379'1                              error: no match found in search range
# |           171:  movq %rsi, %rax 
# |           172:  movq 56(%rsp), %rsi 
# |           173:  movq %rdi, -8(%rsp) # 8-byte Spill 
# |           174:  movq %rax, -16(%rsp) # 8-byte Spill 
# | next:379'2      ?                                     possible intended match
# |           175:  #APP # 16-byte Folded Reload 
# |           176:  # -8(%rsp) -16(%rsp) %rdx %rcx %r8 %r9 %rsi 
# |           177:  #NO_APP 
# |           178:  movq -16(%rsp), %rdx # 8-byte Reload 
# |           179:  movq -8(%rsp), %rax # 8-byte Reload 
# |             .
# |             .
# |             .
# |           195:  .cfi_endproc 
# |           196:  # -- End function 
# |           197:  .globl test_rm_output_shares_input_register # -- Begin function test_rm_output_shares_input_register 
# |           198:  .prefalign 4, .Lfunc_end4, nop 
# |           199:  .type test_rm_output_shares_input_register, at function 
# |           200: test_rm_output_shares_input_register: # @test_rm_output_shares_input_register 
# | next:379'3                                          }                                          search range end (exclusive)
# |           201:  .cfi_startproc 
# |           202: # %bb.0: # %entry 
# |           203:  pushq %rbp 
# |           204:  .cfi_def_cfa_offset 16 
# |           205:  pushq %r15 
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# 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/229632


More information about the llvm-branch-commits mailing list