fallback: legalize: G_BITCAST <N x f16>

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:legalize: G_BITCAST <N x f16> M
Occurrences:5 in 3 configs, 1 test files, 15 more counted only
Snippet from:fixed-vectors-fp-bitcast.c2c5018842.ll (mutant of fixed-vectors-fp-bitcast.ll) @bitcast_f32_v2f16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x half> @bitcast_f32_v2f16(float %a) {
  %b = bitcast float %a to <2 x half>
  %C = fcmp one float %a, %a
  store i1 %C, ptr poison, align 1
  ret <2 x half> %b
}

Reproduce:

llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %1:_(<2 x f16>) = G_BITCAST %0:_(f32) (in function: bitcast_f32_v2f16)
warning: Instruction selection used fallback path for bitcast_f32_v2f16

Occurrences (5):

InputFunctionConfig
fixed-vectors-fp-bitcast.1d294d1fe0.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v4f16_i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O3
fixed-vectors-fp-bitcast.1d294d1fe0.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v4f16_f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh,+v -O3
fixed-vectors-fp-bitcast.c2c5018842.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_f32_v2f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d -O1
fixed-vectors-fp-bitcast.c2c5018842.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_f64_v4f16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d -O1
fixed-vectors-fp-bitcast.c5e4342b06.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_f64_v4f16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh -O0 -code-model=medium

Generated 2026-11-29 14:49 UTC.