fallback: translate: call llvm.scmp.i32.i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.scmp.i32.i64 M |
| Occurrences: | 4 in 4 configs, 2 test files, 5 more counted only |
| Snippet from: | scmp.47199d4110.ll (mutant of scmp.ll) @scmp.32.64 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i32 @scmp.32.64(i64 %x, i64 %y) #0 {
%1 = call i32 @llvm.scmp.i32.i64(i64 %x, i64 %y)
%B = udiv i64 %y, -9223372036854775808
store i64 %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.scmp.i32.i64(i64, i64) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.scmp.i32.i64: ' %1 = call i32 @llvm.scmp.i32.i64(i64 %x, i64 %y)' (in function: scmp.32.64)
warning: Instruction selection used fallback path for scmp.32.64
Occurrences (4):
| Input | Function | Config |
|---|
| scmp.47199d4110.ll (mutant of scmp.ll) | scmp.32.64 | -mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs |
| scmp.5b38528226.ll (mutant of scmp.ll) | scmp.32.64 | -mtriple=riscv32 -mattr=+zfinx,+a -O0 -verify-machineinstrs |
| scmp.6462934c77.ll (mutant of scmp.ll) | scmp.32.64 | -mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs |
| scmp.72fd29c984.ll (mutant of scmp.ll) | scmp.32.64 | -mtriple=riscv32 -mattr=+zdinx,+zcb -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.