fallback: translate: call llvm.ucmp.i32.i32
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.ucmp.i32.i32 M |
| Occurrences: | 5 in 5 configs, 2 test files, 15 more counted only |
| Snippet from: | ucmp.b1f0c1de38.ll (mutant of ucmp.ll) @ucmp.32.32_zext via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zvkb,+zdinx -O2 -code-model=medium -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i32 @ucmp.32.32_zext(i32 zeroext %x, i32 zeroext %y) #0 {
%1 = call i32 @llvm.ucmp.i32.i32(i32 %x, i32 %y)
%B = mul i32 %1, -1
store i32 %B, ptr poison, align 4
ret i32 %1
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare range(i32 -1, 2) i32 @llvm.ucmp.i32.i32(i32, i32) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+zvkb,+zdinx -O2 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zvkb,+zdinx -O2 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.ucmp.i32.i32: ' %1 = call i32 @llvm.ucmp.i32.i32(i32 %x, i32 %y)' (in function: ucmp.32.32_zext)
warning: Instruction selection used fallback path for ucmp.32.32_zext
Occurrences (5):
| Input | Function | Config |
|---|
| ucmp.1ecfbbdc27.ll (mutant of ucmp.ll) | ucmp.32.32_zext | -mtriple=riscv32 -mattr=+zhinx -O3 -verify-machineinstrs |
| ucmp.57aec4b637.ll (mutant of ucmp.ll) | ucmp.32.32_zext | -mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs |
| ucmp.7db883dade.ll (mutant of ucmp.ll) | ucmp.32.32_sext | -mtriple=riscv32 -mattr=+zdinx -O3 -code-model=small -verify-machineinstrs |
| ucmp.b1f0c1de38.ll (mutant of ucmp.ll) | ucmp.32.32_zext | -mtriple=riscv64 -mattr=+zvkb,+zdinx -O2 -code-model=medium -verify-machineinstrs |
| ucmp.c659830a10.ll (mutant of ucmp.ll) | ucmp.32.32_sext | -mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.