[llvm] [WIP][Don't merge] New test for untested case in SILowerSGPRSpills (PR #186067)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 12 08:15:39 PDT 2026


ambergorzynski wrote:

This is the only failing test when the `abort` is included (ours)

> # 🐧 Linux x64 Test Results
> * 171162 tests passed
> * 3035 tests skipped
> * 1 test failed
> 
> ## Failed Tests
> (click on a test name to see its output)
> 
> ### LLVM
> LLVM.CodeGen/AMDGPU/si-lower-sgpr-spills.ll
> ```
> Exit Code: 2
> 
> Command Output (stdout):
> --
> # RUN: at line 2
> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -O0 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/si-lower-sgpr-spills.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/AMDGPU/si-lower-sgpr-spills.ll
> # executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -O0
> # .---command stderr------------
> # | 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -O0
> # | 1.	Running pass 'CallGraph Pass Manager' on module '<stdin>'.
> # | 2.	Running pass 'SI lower SGPR spill instructions' on function '@foo'
> # |  #0 0x0000000008515f18 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
> # |  #1 0x0000000008512e81 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
> # |  #2 0x0000000008516d31 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
> # |  #3 0x00007a82b9120330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
> # |  #4 0x00007a82b9179b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
> # |  #5 0x00007a82b912027e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
> # |  #6 0x00007a82b91038ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
> # |  #7 0x00000000058f1385 operator[] /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/BitVector.h:464:5
> # |  #8 0x00000000058f1385 (anonymous namespace)::SILowerSGPRSpills::run(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp:539:15
> # |  #9 0x00000000058f16dc (anonymous namespace)::SILowerSGPRSpillsLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp:397:47
> # | #10 0x00000000071d2323 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:0:10
> # | #11 0x0000000007741128 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
> # | #12 0x0000000006c75dd5 RunPassOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:25
> # | #13 0x0000000006c75dd5 RunAllPassesOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:469:9
> # | #14 0x0000000006c75dd5 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:534:18
> # | #15 0x0000000007741b9b runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1513:27
> # | #16 0x0000000007741b9b llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:531:44
> # | #17 0x0000000004f23efc compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:871:17
> # | #18 0x0000000004f211c3 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:459:13
> # | #19 0x00007a82b91051ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
> # | #20 0x00007a82b910528b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
> # | #21 0x0000000004f1cce5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x4f1cce5)
> # `-----------------------------
> # error: command failed with exit status: -6
> # 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/AMDGPU/si-lower-sgpr-spills.ll
> # .---command stderr------------
> # | FileCheck error: '<stdin>' is empty.
> # | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/si-lower-sgpr-spills.ll
> # `-----------------------------
> # error: command failed with exit status: 2
> 
> --
> ```
> 
> 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/186067


More information about the llvm-commits mailing list