fallback: legalize: G_BITCAST <N x f32>

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

Snippet:

@G = external global i1
@G.1 = external global double

define double @bitcast_v2f32_f64(<2 x float> %a) {
  %LGV1 = load double, ptr @G.1, align 8
  %b = bitcast <2 x float> %a to double
  %C = fcmp uno double %b, %LGV1
  store i1 %C, ptr @G, align 1
  ret double %b
}

Reproduce:

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

Local llc output:

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

Occurrences (3):

InputFunctionConfig
fixed-vectors-fp-bitcast.5e940fcde5.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v2f32_i64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O3
fixed-vectors-fp-bitcast.6b2b667c78.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v2f32_f64-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zvfh -O1
fixed-vectors-fp-bitcast.e2c994447a.ll (mutant of fixed-vectors-fp-bitcast.ll)bitcast_v2f32_i64-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfh,+v -O3

Generated 2026-11-29 14:49 UTC.