fallback: legalize: G_FPTOSI <N x i16>,<N x f16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_FPTOSI <N x i16>,<N x f16> M |
| Occurrences: | 5 in 5 configs, 1 test files, 16 more counted only |
| Snippet from: | fixed-vectors-fp2i.4338414a81.ll (mutant of fixed-vectors-fp2i.ll) @fp2si_v64f16_v64i16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i1
@G.2 = external global i1
define void @fp2si_v64f16_v64i16(ptr %x, ptr %y) {
%LGV = load i1, ptr @G.1, align 1
%a = load <64 x half>, ptr %x, align 128
%B = lshr i1 %LGV, false
%d = fptosi <64 x half> %a to <64 x i16>
store <64 x i16> %d, ptr %y, align 128
store i1 %B, ptr @G.2, align 1
ret void
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0 -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 -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %7:_(<64 x i16>) = G_FPTOSI %4:_(<64 x f16>) (in function: fp2si_v64f16_v64i16)
warning: Instruction selection used fallback path for fp2si_v64f16_v64i16
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-fp2i.4338414a81.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v64f16_v64i16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d -O0 |
| fixed-vectors-fp2i.8a7a385fb2.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v64f16_v64i16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f,+d,+zihintpause -O3 |
| fixed-vectors-fp2i.a77ca41df1.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v64f16_v64i16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+f -O0 |
| fixed-vectors-fp2i.bbcba19cf2.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v64f16_v64i16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d,+zba -O1 -code-model=medium |
| fixed-vectors-fp2i.e2b16ffc86.ll (mutant of fixed-vectors-fp2i.ll) | fp2si_v64f16_v64i16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfh,+experimental-zvfbfa,+f -O0 -code-model=small |
Generated 2026-11-29 14:49 UTC.