fallback: legalize: G_BITCAST <N x f16>
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | legalize: G_BITCAST <N x f16> M |
| Occurrences: | 3 in 2 configs, 1 test files, 6 more counted only |
| Snippet from: | fixed-vectors-fp-bitcast.1ae77264eb.ll (mutant of fixed-vectors-fp-bitcast.ll) @bitcast_i32_v2f16 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zvbb -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global half
@G.1 = external global i1
define <2 x half> @bitcast_i32_v2f16(i32 %a) {
%LGV = load half, ptr @G, align 2
%b = bitcast i32 %a to <2 x half>
%C = fcmp ueq half 1.000000e+00, %LGV
store i1 %C, ptr @G.1, align 1
ret <2 x half> %b
}
Reproduce:
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zvbb -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zvbb -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %4:_(<2 x f16>) = G_BITCAST %0:_(i32) (in function: bitcast_i32_v2f16)
warning: Instruction selection used fallback path for bitcast_i32_v2f16
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-fp-bitcast.1ae77264eb.ll (mutant of fixed-vectors-fp-bitcast.ll) | bitcast_i32_v2f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zvbb -O2 |
| fixed-vectors-fp-bitcast.1ae77264eb.ll (mutant of fixed-vectors-fp-bitcast.ll) | bitcast_f64_v4f16 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+zvbb -O2 |
| fixed-vectors-fp-bitcast.5e940fcde5.ll (mutant of fixed-vectors-fp-bitcast.ll) | bitcast_v2f16_f32 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O3 |
Generated 2026-11-29 14:49 UTC.