[llvm] [SPARC] Prevent RESTORE from sourcing from %o7 in call delay slots (PR #172593)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 16 20:24:05 PST 2025


github-actions[bot] wrote:

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

* 128709 tests passed
* 2824 tests skipped
* 2 tests failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/SPARC/2011-01-11-Call.ll</summary>

```
Exit Code: 3221225501

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=sparc -O0 <C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPARC\2011-01-11-Call.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=sparc -O0
# .---command stderr------------
# | Unknown opcode.
# | UNREACHABLE executed at C:\_work\llvm-project\llvm-project\llvm\lib\Target\Sparc\DelaySlotFiller.cpp:310!
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -mtriple=sparc -O0
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'SPARC Delay Slot Filler' on function '@test_tail_call_with_return'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff7ea665366 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2c35366)
# |  #1 0x00007ffeb763bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffeb763cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ff7e8118f85 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6e8f85)
# |  #4 0x00007ff7e94c4355 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1a94355)
# |  #5 0x00007ff7e94c1a1b (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1a91a1b)
# |  #6 0x00007ff7e83cd753 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x99d753)
# |  #7 0x00007ff7e7edfd12 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4afd12)
# |  #8 0x00007ff7e7ee8ded (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b8ded)
# |  #9 0x00007ff7e7ee09f1 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b09f1)
# | #10 0x00007ff7e7a37c1c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7c1c)
# | #11 0x00007ff7e7a34e86 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4e86)
# | #12 0x00007ff7ebfeffe4 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x45bffe4)
# | #13 0x00007ffebd2a4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #14 0x00007ffec9e5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d

--

```
</details>
<details>
<summary>LLVM.CodeGen/SPARC/tailcall.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPARC\tailcall.ll -mtriple=sparc -verify-machineinstrs | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPARC\tailcall.ll --check-prefix=V8
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=sparc -verify-machineinstrs
# .---command stderr------------
# | Unknown opcode.
# | UNREACHABLE executed at C:\_work\llvm-project\llvm-project\llvm\lib\Target\Sparc\DelaySlotFiller.cpp:310!
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -mtriple=sparc -verify-machineinstrs
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'SPARC Delay Slot Filler' on function '@simple_leaf'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff7ea665366 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2c35366)
# |  #1 0x00007ffeb763bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffeb763cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ff7e8118f85 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6e8f85)
# |  #4 0x00007ff7e94c4355 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1a94355)
# |  #5 0x00007ff7e94c1a1b (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1a91a1b)
# |  #6 0x00007ff7e83cd753 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x99d753)
# |  #7 0x00007ff7e7edfd12 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4afd12)
# |  #8 0x00007ff7e7ee8ded (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b8ded)
# |  #9 0x00007ff7e7ee09f1 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b09f1)
# | #10 0x00007ff7e7a37c1c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7c1c)
# | #11 0x00007ff7e7a34e86 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4e86)
# | #12 0x00007ff7ebfeffe4 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x45bffe4)
# | #13 0x00007ffebd2a4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #14 0x00007ffec9e5edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPARC\tailcall.ll' --check-prefix=V8
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPARC\tailcall.ll --check-prefix=V8
# `-----------------------------
# error: command failed with exit status: 2

--

```
</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/172593


More information about the llvm-commits mailing list