[llvm] [AMDGPU] Use `v_cvt_pk_*` instructions for i16_f32 saturated conversions (PR #202680)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 03:30:35 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-debian` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/1856
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AMDGPU/fptoui-sat-scalar.ll' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc < /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/fptoui-sat-scalar.ll -global-isel=0 -mtriple=amdgcn -mcpu=gfx700 | /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/fptoui-sat-scalar.ll --check-prefixes=GFX7,GFX7-ISEL
# executed command: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx700
# executed command: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/fptoui-sat-scalar.ll --check-prefixes=GFX7,GFX7-ISEL
# RUN: at line 3
/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc < /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/fptoui-sat-scalar.ll -global-isel=1 -mtriple=amdgcn -mcpu=gfx700 | /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AMDGPU/fptoui-sat-scalar.ll --check-prefixes=GFX7,GFX7-GI
# executed command: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx700
# .---command stderr------------
# |
# | # After InstructionSelect
# | # Machine code for function test_unsigned_i16_f32: IsSSA, TracksLiveness, Legalized, RegBankSelected, Selected
# | Function Live Ins: $sgpr4_sgpr5 in %1, $sgpr6_sgpr7 in %2, $sgpr8_sgpr9 in %3, $sgpr10_sgpr11 in %4, $sgpr12 in %5, $sgpr13 in %6, $sgpr14 in %7, $sgpr15 in %8
# |
# | bb.1 (%ir-block.0):
# | liveins: $vgpr0
# | %0:vgpr_32 = COPY $vgpr0
# | %11:vgpr_32 = nofpexcept V_CVT_U32_F32_e64 0, %0:vgpr_32, 0, 0, implicit $mode, implicit $exec
# | %9:vgpr_32 = V_MIN_U32_e64 %11:vgpr_32, 65535, implicit $exec
# | $vgpr0 = COPY %9:vgpr_32
# | SI_RETURN implicit $vgpr0
# |
# | # End machine code for function test_unsigned_i16_f32.
# |
# | *** Bad machine code: VOP3 instruction uses literal ***
# | - function: test_unsigned_i16_f32
# | - basic block: %bb.1 (0xb1f1370)
# | - instruction: %9:vgpr_32 = V_MIN_U32_e64 %11:vgpr_32, 65535, implicit $exec
# | LLVM ERROR: Found 1 machine code errors.
# | 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: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx700
# | 1. Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2. Running pass 'Verify generated machine code' on function '@test_unsigned_i16_f32'
# | #0 0x0000000003e35777 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc+0x3e35777)
# | #1 0x0000000003e3267e llvm::sys::RunSignalHandlers() (/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc+0x3e3267e)
# | #2 0x0000000003e3652a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# | #3 0x00007f7994b6a170 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x13170)
# | #4 0x00007f799467ed61 raise (/lib/x86_64-linux-gnu/libc.so.6+0x38d61)
# | #5 0x00007f7994668537 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22537)
# | #6 0x0000000003d8fb5d llvm::report_fatal_error(llvm::Twine const&, bool) (/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc+0x3d8fb5d)
# | #7 0x0000000002e2b5bf (/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc+0x2e2b5bf)
# | #8 0x0000000002e2c8b6 (anonymous namespace)::MachineVerifierLegacyPass::runOnMachineFunction(llvm::MachineFunction&) MachineVerifier.cpp:0:0
# | #9 0x0000000002d2015b llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc+0x2d2015b)
# | #10 0x00000000032c3b7f llvm::FPPassManager::runOnFunction(llvm::Function&) (/b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc+0x32c3b7f)
# | #11 0x000000000280ba7f (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) CallGraphSCCPass.cpp:0:0
...
```
</details>
https://github.com/llvm/llvm-project/pull/202680
More information about the llvm-commits
mailing list