fallback: legalize: G_SMULFIX s64
| Run: | explore-bc8218b282-20261015-075519 |
| Kind: | fallback |
| Category: | legalize: G_SMULFIX s64 |
| Occurrences: | 4 in 1 configs, 1 test files |
| Snippet from: | addcarry.ll @addcarry via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m |
| Local check: | reproduces at bc8218b282 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i64 @addcarry(i64 %x, i64 %y) #0 {
%tmp = call i64 @llvm.smul.fix.i64(i64 %x, i64 %y, i32 2)
ret i64 %tmp
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smul.fix.i64(i64, i64, i32 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+m -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %6:_(s64) = G_SMULFIX %0:_, %1:_, 2 (in function: addcarry)
warning: Instruction selection used fallback path for addcarry
Occurrences (4):
| Input | Function | Config |
|---|
| addcarry.ll | addcarry | -mtriple=riscv32 -mattr=+m |
| addcarry.1fa3239c09.ll (mutant of addcarry.ll) | addcarry | -mtriple=riscv32 -mattr=+m |
| addcarry.516c06e621.ll (mutant of addcarry.ll) | addcarry | -mtriple=riscv32 -mattr=+m |
| addcarry.ed70cf144e.ll (mutant of addcarry.ll) | addcarry | -mtriple=riscv32 -mattr=+m |
Generated 2026-10-15 08:05 UTC.