fallback: legalize: G_FPTOSI <N x i8>,<N x bf16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_FPTOSI <N x i8>,<N x bf16> M |
| Occurrences: | 4 in 4 configs, 1 test files, 15 more counted only |
| Snippet from: | fixed-vectors-fp2i.749ee5984e.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2bf16_v2i8 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define void @fp2si_v2bf16_v2i8(ptr %x, ptr %y) {
%G = getelementptr ptr, ptr %y, i1 true
%a = load <2 x bfloat>, ptr %x, align 4
%d = fptosi <2 x bfloat> %a to <2 x i8>
store <2 x i8> %d, ptr %G, align 2
ret void
}
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(<2 x i8>) = G_FPTOSI %4:_(<2 x bf16>) (in function: fp2si_v2bf16_v2i8)
warning: Instruction selection used fallback path for fp2si_v2bf16_v2i8
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-fp2i.0de8a3024a.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+zbb -O3 |
| fixed-vectors-fp2i.4338414a81.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0 |
| fixed-vectors-fp2i.749ee5984e.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O3 |
| fixed-vectors-fp2i.f31fc1c04d.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+zve32x,+m -O1 |
Generated 2026-11-29 14:49 UTC.