fallback: legalize: G_FPTOSI <N x i8>,<N x bf16>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_FPTOSI <N x i8>,<N x bf16> M |
| Occurrences: | 3 in 3 configs, 1 test files, 20 more counted only |
| Snippet from: | fixed-vectors-fp2i.4396c87b44.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2bf16_v2i8 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i128
@G.1 = external global ptr
define void @fp2si_v2bf16_v2i8(ptr %x, ptr %y) {
%LGV = load i128, ptr @G, align 4
%a = load <2 x bfloat>, ptr %x, align 4
%d = fptosi <2 x bfloat> %a to <2 x i8>
%G = getelementptr <2 x i8>, ptr %y, i128 %LGV
store <2 x i8> %d, ptr %y, align 2
store ptr %G, ptr @G.1, align 8
ret void
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 -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 (3):
| Input | Function | Config |
|---|
| fixed-vectors-fp2i.0e5149e928.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zbb -O1 |
| fixed-vectors-fp2i.2c6e131a91.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+f,+d,+c -O0 -code-model=medium |
| fixed-vectors-fp2i.4396c87b44.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O1 |
Generated 2026-11-29 14:49 UTC.