fallback: legalize: G_FPTRUNC <N x bf16>,<N x f64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_FPTRUNC <N x bf16>,<N x f64> M |
| Occurrences: | 4 in 2 configs, 1 test files, 5 more counted only |
| Snippet from: | fixed-vectors-fptrunc-vp.30ce6ee316.ll (mutant of fixed-vectors-fptrunc-vp.ll) @vfptrunc_v2bf16_v2f64 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O0 -code-model=small |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <2 x bfloat> @vfptrunc_v2bf16_v2f64(<2 x double> %a, <2 x i1> %m, i32 zeroext %vl) {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%C = icmp uge i1 true, false
%v = fptrunc <2 x double> %a to <2 x bfloat>
store i1 %C, ptr %A, align 1
ret <2 x bfloat> %v
}
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O0 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %12:_(<2 x bf16>) = G_FPTRUNC %0:_(<2 x f64>) (in function: vfptrunc_v2bf16_v2f64)
warning: Instruction selection used fallback path for vfptrunc_v2bf16_v2f64
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-fptrunc-vp.30ce6ee316.ll (mutant of fixed-vectors-fptrunc-vp.ll) | vfptrunc_v2bf16_v2f64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O0 -code-model=small |
| fixed-vectors-fptrunc-vp.30ce6ee316.ll (mutant of fixed-vectors-fptrunc-vp.ll) | vfptrunc_v2bf16_v2f64_unmasked | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O0 -code-model=small |
| fixed-vectors-fptrunc-vp.c094a6c036.ll (mutant of fixed-vectors-fptrunc-vp.ll) | vfptrunc_v2bf16_v2f64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin -O3 |
| fixed-vectors-fptrunc-vp.c094a6c036.ll (mutant of fixed-vectors-fptrunc-vp.ll) | vfptrunc_v2bf16_v2f64_unmasked | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zvfhmin,+zvfbfmin -O3 |
Generated 2026-11-29 14:49 UTC.