[llvm] Fix issue reported in #193962 (PR #201541)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 03:28:45 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 175100 tests passed
* 3430 tests skipped
* 4 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/RISCV/miss-sp-restore-eh.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+v,+m < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/miss-sp-restore-eh.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/miss-sp-restore-eh.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+v,+m
# 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/CodeGen/RISCV/miss-sp-restore-eh.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/miss-sp-restore-eh.ll:16:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: addi sp, sp, -32
# | ^
# | <stdin>:13:18: note: scanning from here
# | # %bb.0: # %entry
# | ^
# | <stdin>:14:2: note: possible intended match here
# | addi sp, sp, -48
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/miss-sp-restore-eh.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 8: foo: # @foo
# | 9: .Lfunc_begin0:
# | 10: .cfi_startproc
# | 11: .cfi_personality 155, DW.ref.__gxx_personality_v0
# | 12: .cfi_lsda 27, .Lexception0
# | 13: # %bb.0: # %entry
# | next:16'0 X error: no match found
# | 14: addi sp, sp, -48
# | next:16'0 ~~~~~~~~~~~~~~~~~~
# | next:16'1 ? possible intended match
# | 15: .cfi_def_cfa_offset 48
# | next:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: sd ra, 40(sp) # 8-byte Folded Spill
# | next:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: sd s0, 32(sp) # 8-byte Folded Spill
# | next:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: sd s1, 24(sp) # 8-byte Folded Spill
# | next:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 19: .cfi_offset ra, -8
# | next:16'0 ~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/RISCV/rvv/callee-saved-regs.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+m -mattr=+v -O2 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=SPILL-O2 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+m -mattr=+v -O2
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=SPILL-O2 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll:256:18: error: SPILL-O2-NEXT: expected string not found in input
# | ; SPILL-O2-NEXT: addi sp, s0, -2032
# | ^
# | <stdin>:251:16: note: scanning from here
# | sb a0, 600(sp)
# | ^
# | <stdin>:258:2: note: possible intended match here
# | addi sp, sp, 2032
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 246: .cfi_offset s0, -8
# | 247: addi s0, sp, 2032
# | 248: .cfi_def_cfa s0, 0
# | 249: addi sp, sp, -480
# | 250: lbu a0, 600(sp)
# | 251: sb a0, 600(sp)
# | next:256'0 X error: no match found
# | 252: addi sp, sp, 480
# | next:256'0 ~~~~~~~~~~~~~~~~~~
# | 253: .cfi_def_cfa sp, 2032
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 254: lw ra, 2028(sp) # 4-byte Folded Reload
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 255: lw s0, 2024(sp) # 4-byte Folded Reload
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 256: .cfi_restore ra
# | next:256'0 ~~~~~~~~~~~~~~~~~
# | 257: .cfi_restore s0
# | next:256'0 ~~~~~~~~~~~~~~~~~
# | 258: addi sp, sp, 2032
# | next:256'0 ~~~~~~~~~~~~~~~~~~~
# | next:256'1 ? possible intended match
# | 259: .cfi_def_cfa_offset 0
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 260: ret
# | next:256'0 ~~~~~
# | 261: .Lfunc_end4:
# | next:256'0 ~~~~~~~~~~~~~
# | 262: .size local_stack_allocation_frame_pointer, .Lfunc_end4-local_stack_allocation_frame_pointer
# | next:256'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 263: .cfi_endproc
# | next:256'0 ~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/RISCV/rvv/stack-probing-dynamic.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+m,+v -O2 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/stack-probing-dynamic.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/stack-probing-dynamic.ll -check-prefix=RV64I
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+m,+v -O2
# 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/CodeGen/RISCV/rvv/stack-probing-dynamic.ll -check-prefix=RV64I
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/stack-probing-dynamic.ll:464:15: error: RV64I-NEXT: is not on the line after the previous match
# | ; RV64I-NEXT: addi sp, sp, -64
# | ^
# | <stdin>:252:2: note: 'next' match was here
# | addi sp, sp, -64
# | ^
# | <stdin>:248:20: note: previous match ended here
# | .cfi_def_cfa s0, 0
# | ^
# | <stdin>:249:1: note: non-matching line after previous match is here
# | lui a0, 1
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rvv/stack-probing-dynamic.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 247: addi s0, sp, 2032
# | 248: .cfi_def_cfa s0, 0
# | 249: lui a0, 1
# | 250: sub sp, sp, a0
# | 251: sd zero, 0(sp)
# | 252: addi sp, sp, -64
# | next:464 !~~~~~~~~~~~~~~~ error: match on wrong line
# | 253: addi a0, s0, -2048
# | 254: addi a0, a0, -48
# | 255: call callee_stack_args
# | 256: lui a0, 1
# | 257: addi a0, a0, 64
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/RISCV/varargs-with-fp-and-second-adj.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+m,+c,+v < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/varargs-with-fp-and-second-adj.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=RV64V /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/varargs-with-fp-and-second-adj.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+m,+c,+v
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=RV64V /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/varargs-with-fp-and-second-adj.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/varargs-with-fp-and-second-adj.ll:28:15: error: RV64V-NEXT: expected string not found in input
# | ; RV64V-NEXT: addi sp, s0, -432
# | ^
# | <stdin>:31:16: note: scanning from here
# | sd a0, -40(s0)
# | ^
# | <stdin>:40:2: note: possible intended match here
# | addi sp, sp, 496
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/varargs-with-fp-and-second-adj.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 26: sd a2, 16(s0)
# | 27: sd a3, 24(s0)
# | 28: sd a4, 32(s0)
# | 29: sd a0, -32(s0)
# | 30: addi a0, s0, 8
# | 31: sd a0, -40(s0)
# | next:28'0 X error: no match found
# | 32: lui a0, 2
# | next:28'0 ~~~~~~~~~~~
# | 33: addi a0, a0, -576
# | next:28'0 ~~~~~~~~~~~~~~~~~~~
# | 34: add sp, sp, a0
# | next:28'0 ~~~~~~~~~~~~~~~~
# | 35: .cfi_def_cfa sp, 496
# | next:28'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 36: ld ra, 424(sp) # 8-byte Folded Reload
# | next:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 37: ld s0, 416(sp) # 8-byte Folded Reload
# | next:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 38: .cfi_restore ra
# | next:28'0 ~~~~~~~~~~~~~~~~~
# | 39: .cfi_restore s0
# | next:28'0 ~~~~~~~~~~~~~~~~~
# | 40: addi sp, sp, 496
# | next:28'0 ~~~~~~~~~~~~~~~~~~
# | next:28'1 ? possible intended match
# | 41: .cfi_def_cfa_offset 0
# | next:28'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 42: ret
# | next:28'0 ~~~~~
# | 43: .Lfunc_end0:
# | next:28'0 ~~~~~~~~~~~~~
# | 44: .size _Z3fooPKcz, .Lfunc_end0-_Z3fooPKcz
# | next:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 45: .cfi_endproc
# | next:28'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/201541
More information about the llvm-commits
mailing list