[clang] [llvm] [MIPS][ISel] Fix musttail (PR #161860)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 30 07:08:05 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 167525 tests passed
* 2970 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/Mips/musttail.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=mips-unknown-linux-gnu < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/Mips/musttail.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/Mips/musttail.ll --check-prefix=MIPS32
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=mips-unknown-linux-gnu
# 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/Mips/musttail.ll --check-prefix=MIPS32
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/Mips/musttail.ll:14:16: error: MIPS32-NEXT: expected string not found in input
# | ; MIPS32-NEXT: j callee_args
# | ^
# | <stdin>:46:9: note: scanning from here
# | # %bb.0:
# | ^
# | <stdin>:51:4: note: possible intended match here
# | jal callee_args
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/Mips/musttail.ll:34:16: error: MIPS32-NEXT: expected string not found in input
# | ; MIPS32-NEXT: lw $1, 24($sp)
# | ^
# | <stdin>:104:9: note: scanning from here
# | # %bb.0:
# | ^
# | <stdin>:109:2: note: possible intended match here
# | lw $1, 56($sp)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/Mips/musttail.ll:62:16: error: MIPS32-NEXT: expected string not found in input
# | ; MIPS32-NEXT: lw $1, 28($sp)
# | ^
# | <stdin>:170:9: note: scanning from here
# | # %bb.0:
# | ^
# | <stdin>:175:2: note: possible intended match here
# | lw $1, 64($sp)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/Mips/musttail.ll:91:16: error: MIPS32-NEXT: expected string not found in input
# | ; MIPS32-NEXT: lw $1, 16($sp)
# | ^
# | <stdin>:237:9: note: scanning from here
# | # %bb.0:
# | ^
# | <stdin>:246:2: note: possible intended match here
# | sw $1, 16($sp)
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/Mips/musttail.ll:109:16: error: MIPS32-NEXT: is not on the line after the previous match
# | ; MIPS32-NEXT: move $25, $4
# | ^
# | <stdin>:277:2: note: 'next' match was here
# | move $25, $4
# | ^
# | <stdin>:272:9: note: previous match ended here
# | # %bb.0:
# | ^
# | <stdin>:273:1: note: non-matching line after previous match is here
# | addiu $sp, $sp, -24
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/Mips/musttail.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 41: .mask 0x80000000,-4
# | 42: .fmask 0x00000000,0
# | 43: .set noreorder
# | 44: .set nomacro
# | 45: .set noat
# | 46: # %bb.0:
# | next:14'0 X error: no match found
# | 47: addiu $sp, $sp, -24
# | next:14'0 ~~~~~~~~~~~~~~~~~~~~~
# | 48: .cfi_def_cfa_offset 24
# | next:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 49: sw $ra, 20($sp) # 4-byte Folded Spill
# | next:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 50: .cfi_offset 31, -4
# | next:14'0 ~~~~~~~~~~~~~~~~~~~~
# | 51: jal callee_args
# | next:14'0 ~~~~~~~~~~~~~~~~~
# | next:14'1 ? possible intended match
# | 52: nop
# | next:14'0 ~~~~~
# | 53: lw $ra, 20($sp) # 4-byte Folded Reload
# | next:14'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 54: jr $ra
# | next:14'0 ~~~~~~~~
# | 55: addiu $sp, $sp, 24
# | next:14'0 ~~~~~~~~~~~~~~~~~~~~
# | 56: .set at
# | next:14'0 ~~~~~~~~~
# | .
# | .
# | .
# | 99: .mask 0x80000000,-4
# | 100: .fmask 0x00000000,0
# | 101: .set noreorder
# | 102: .set nomacro
# | 103: .set noat
# | 104: # %bb.0:
# | next:34'0 X error: no match found
# | 105: addiu $sp, $sp, -40
# | next:34'0 ~~~~~~~~~~~~~~~~~~~~~
# | 106: .cfi_def_cfa_offset 40
# | next:34'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 107: sw $ra, 36($sp) # 4-byte Folded Spill
# | next:34'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 108: .cfi_offset 31, -4
# | next:34'0 ~~~~~~~~~~~~~~~~~~~~
# | 109: lw $1, 56($sp)
# | next:34'0 ~~~~~~~~~~~~~~~~
# | next:34'1 ? possible intended match
# | 110: lw $2, 60($sp)
# | next:34'0 ~~~~~~~~~~~~~~~~
# | 111: lw $3, 64($sp)
# | next:34'0 ~~~~~~~~~~~~~~~~
# | 112: lw $8, 68($sp)
# | next:34'0 ~~~~~~~~~~~~~~~~
# | 113: sw $8, 28($sp)
# | next:34'0 ~~~~~~~~~~~~~~~~
# | 114: sw $3, 24($sp)
# | next:34'0 ~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 165: .mask 0x80000000,-4
# | 166: .fmask 0x00000000,0
# | 167: .set noreorder
# | 168: .set nomacro
# | 169: .set noat
# | 170: # %bb.0:
# | next:62'0 X error: no match found
# | 171: addiu $sp, $sp, -48
# | next:62'0 ~~~~~~~~~~~~~~~~~~~~~
# | 172: .cfi_def_cfa_offset 48
# | next:62'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 173: sw $ra, 44($sp) # 4-byte Folded Spill
# | next:62'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 174: .cfi_offset 31, -4
# | next:62'0 ~~~~~~~~~~~~~~~~~~~~
# | 175: lw $1, 64($sp)
# | next:62'0 ~~~~~~~~~~~~~~~~
# | next:62'1 ? possible intended match
# | 176: lw $2, 68($sp)
# | next:62'0 ~~~~~~~~~~~~~~~~
# | 177: lw $3, 72($sp)
# | next:62'0 ~~~~~~~~~~~~~~~~
# | 178: lw $8, 76($sp)
# | next:62'0 ~~~~~~~~~~~~~~~~
# | 179: lw $9, 80($sp)
# | next:62'0 ~~~~~~~~~~~~~~~~
# | 180: sw $9, 32($sp)
# | next:62'0 ~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 232: .mask 0x80000000,-4
# | 233: .fmask 0x00000000,0
# | 234: .set noreorder
# | 235: .set nomacro
# | 236: .set noat
# | 237: # %bb.0:
# | next:91'0 X error: no match found
# | 238: addiu $sp, $sp, -32
# | next:91'0 ~~~~~~~~~~~~~~~~~~~~~
# | 239: .cfi_def_cfa_offset 32
# | next:91'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 240: sw $ra, 28($sp) # 4-byte Folded Spill
# | next:91'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 241: .cfi_offset 31, -4
# | next:91'0 ~~~~~~~~~~~~~~~~~~~~
# | 242: lw $1, 48($sp)
# | next:91'0 ~~~~~~~~~~~~~~~~
# | 243: lw $2, 52($sp)
# | next:91'0 ~~~~~~~~~~~~~~~~
# | 244: sw $2, 20($sp)
# | next:91'0 ~~~~~~~~~~~~~~~~
# | 245: jal mixed_args_callee
# | next:91'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 246: sw $1, 16($sp)
# | next:91'0 ~~~~~~~~~~~~~~~~
# | next:91'1 ? possible intended match
# | 247: lw $ra, 28($sp) # 4-byte Folded Reload
# | next:91'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 248: jr $ra
# | next:91'0 ~~~~~~~~
# | 249: addiu $sp, $sp, 32
# | next:91'0 ~~~~~~~~~~~~~~~~~~~~
# | 250: .set at
# | next:91'0 ~~~~~~~~~
# | 251: .set macro
# | next:91'0 ~~~~~~~~~~~~
# | .
# | .
# | .
# | 272: # %bb.0:
# | 273: addiu $sp, $sp, -24
# | 274: .cfi_def_cfa_offset 24
# | 275: sw $ra, 20($sp) # 4-byte Folded Spill
# | 276: .cfi_offset 31, -4
# | 277: move $25, $4
# | next:109 !~~~~~~~~~~~ error: match on wrong line
# | 278: jalr $25
# | 279: nop
# | 280: lw $ra, 20($sp) # 4-byte Folded Reload
# | 281: jr $ra
# | 282: addiu $sp, $sp, 24
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/161860
More information about the cfe-commits
mailing list