fallback: legalize: G_UITOFP <N x f16>,<N x i1>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_UITOFP <N x f16>,<N x i1> M |
| Occurrences: | 4 in 3 configs, 2 test files, 4 more counted only |
| Snippet from: | fixed-vectors-i2fp.7578b78eab.ll (mutant of fixed-vectors-i2fp.ll) @ui2fp_v2i1_v2f16 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i16
define <2 x half> @ui2fp_v2i1_v2f16(<2 x i1> %x) {
%LGV = load i16, ptr @G, align 2
%z = uitofp <2 x i1> %x to <2 x half>
%B = srem i16 %LGV, 1
store i16 %B, ptr @G, align 2
ret <2 x half> %z
}
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %6:_(<2 x f16>) = G_UITOFP %0:_(<2 x i1>) (in function: ui2fp_v2i1_v2f16)
warning: Instruction selection used fallback path for ui2fp_v2i1_v2f16
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-i2fp.7578b78eab.ll (mutant of fixed-vectors-i2fp.ll) | ui2fp_v2i1_v2f16 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin,+f,+d,+xtheadba -O2 |
| fixed-vectors-i2fp.7e8bdb8e60.ll (mutant of fixed-vectors-i2fp.ll) | ui2fp_v8i1_v8f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+zvfbfmin,+f,+d,+zbb -O1 |
| fixed-vectors-uitofp-vp-mask.713f8df602.ll (mutant of fixed-vectors-uitofp-vp-mask.ll) | vuitofp_v4f16_v4i1 | -mtriple=riscv32 -mattr=+m,+v -O2 -verify-machineinstrs |
| fixed-vectors-uitofp-vp-mask.713f8df602.ll (mutant of fixed-vectors-uitofp-vp-mask.ll) | vuitofp_v4f16_v4i1_unmasked | -mtriple=riscv32 -mattr=+m,+v -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.