fallback: legalize: G_FPTOSI <N x i8>,<N x bf16>
| Run: | main-db12fc36f6-20261127-110859 |
| Kind: | fallback |
| Category: | legalize: G_FPTOSI <N x i8>,<N x bf16> M |
| Occurrences: | 6 in 6 configs, 1 test files |
| Snippet from: | fixed-vectors-fp2i.2ead3406de.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v2bf16_v2i8 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global float
@G.3 = external global float
@G.4 = external global float
define void @fp2si_v2bf16_v2i8(ptr %x, ptr %y) {
%LGV1 = load float, ptr @G.3, align 4
%LGV = load float, ptr @G.2, align 4
%a = load <2 x bfloat>, ptr %x, align 4
%B = frem float %LGV, %LGV1
%d = fptosi <2 x bfloat> %a to <2 x i8>
store <2 x i8> %d, ptr %y, align 2
store float %B, ptr @G.4, align 4
ret void
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %8:_(<2 x i8>) = G_FPTOSI %6:_(<2 x bf16>) (in function: fp2si_v2bf16_v2i8)
warning: Instruction selection used fallback path for fp2si_v2bf16_v2i8
Occurrences (6):
| Input | Function | Config |
|---|
| fixed-vectors-fp2i.2ead3406de.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -verify-machineinstrs |
| fixed-vectors-fp2i.348adfb01f.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfh,+zvfbfmin,+f,+d -verify-machineinstrs |
| fixed-vectors-fp2i.8156ebd1eb.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d -verify-machineinstrs |
| fixed-vectors-fp2i.95cbc145d9.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfh,+zvfbfmin,+f,+d -verify-machineinstrs |
| fixed-vectors-fp2i.ad3db9a201.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -verify-machineinstrs |
| fixed-vectors-fp2i.fc6a2874a9.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v2bf16_v2i8 | -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.