fallback: legalize: G_BITCAST <N x f16>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:legalize: G_BITCAST <N x f16> M
Occurrences:3 in 3 configs, 1 test files, 5 more counted only
Snippet from:fixed-vectors-fp-bitcast.ec2287dce0.ll (mutant of fixed-vectors-fp-bitcast.ll) @bitcast_v2f16_f32 via llvm-extract
Config:-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global <2 x half>

define float @bitcast_v2f16_f32(<2 x half> %a) {
  %B = fadd <2 x half> %a, %a
  %b = bitcast <2 x half> %a to float
  store <2 x half> %B, ptr @G.3, align 4
  ret float %b
}

Reproduce:

llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-fp-bitcast.4aa2c2b690.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v2f16_f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O1
fixed-vectors-fp-bitcast.973259167f.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v4f16_i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh,+v -O3
fixed-vectors-fp-bitcast.ec2287dce0.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v2f16_f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zvfh -O0

Generated 2026-11-29 14:49 UTC.