fallback: legalize: G_FPTRUNC s32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_FPTRUNC s32 M |
| Occurrences: | 5 in 5 configs, 5 test files, 749 more counted only |
| Snippet from: | fixed-vectors-fp-buildvec.ad73d4eefa.ll (mutant of fixed-vectors-fp-buildvec.ll) @vid_step2_v2f64 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+f,+d,+zvkb -O0 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global bfloat
@G.1 = external global bfloat
define <2 x double> @vid_step2_v2f64() {
%LGV = load bfloat, ptr @G, align 2
%B = frem bfloat +qnan, %LGV
store bfloat %B, ptr @G.1, align 2
ret <2 x double> <double 0.000000e+00, double 2.000000e+00>
}
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+f,+d,+zvkb -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+f,+d,+zvkb -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %3:_(bf16) = G_FPTRUNC %12:_(s32) (in function: vid_step2_v2f64)
warning: Instruction selection used fallback path for vid_step2_v2f64
Occurrences (5):
| Input | Function | Config |
|---|
| attributes-thead.f96df593ce.ll (mutant of attributes-thead.ll) | addi | -mtriple=riscv32 -mattr=+xtheadfmemidx,+zbs -O3 -verify-machineinstrs |
| fixed-vectors-fp-buildvec.ad73d4eefa.ll (mutant of fixed-vectors-fp-buildvec.ll) | vid_step2_v2f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfhmin,+f,+d,+zvkb -O0 |
| fixed-vectors-reduction-int-vp.f47b771fb4.ll (mutant of fixed-vectors-reduction-int-vp.ll) | vpreduce_mul_v1i8 | -mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadba -O0 |
| half-convert.de3472fd23.ll (mutant of half-convert.ll) | fcvt_h_wu_demanded_bits | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64f -mattr=+zfh,+v,+zbkb -O3 |
| riscv-codegenprepare-asm.2ed418ffd5.ll (mutant of riscv-codegenprepare-asm.ll) | test2 | -mtriple=riscv64 -mattr=+v,+zvkb -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.