fallback: legalize: G_SITOFP <N x bf16>,<N x i64>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_SITOFP <N x bf16>,<N x i64> M
Occurrences:4 in 4 configs, 1 test files, 24 more counted only
Snippet from:fixed-vectors-i2fp.1a7e4506d0.ll (mutant of fixed-vectors-i2fp.ll) @si2fp_v2i64_v2bf16 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global ptr

define void @si2fp_v2i64_v2bf16(ptr %x, ptr %y) {
  %G = getelementptr ptr, ptr %x, i8 -1
  %a = load <2 x i64>, ptr %x, align 16
  %d = sitofp <2 x i64> %a to <2 x bfloat>
  store <2 x bfloat> %d, ptr %y, align 4
  store ptr %G, ptr @G.3, align 8
  ret void
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %5:_(<2 x bf16>) = G_SITOFP %4:_(<2 x i64>) (in function: si2fp_v2i64_v2bf16)
warning: Instruction selection used fallback path for si2fp_v2i64_v2bf16

Occurrences (4):

InputFunctionConfig
fixed-vectors-i2fp.1a7e4506d0.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v2i64_v2bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh,+experimental-zvfbfa,+f,+d -O0
fixed-vectors-i2fp.1f59899a7a.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v2i64_v2bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+d -O0
fixed-vectors-i2fp.50d9a4d47c.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v2i64_v2bf16-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zvfh,+zvfbfmin,+f,+d,+zfhmin -O0
fixed-vectors-i2fp.ae61c6c514.ll (mutant of fixed-vectors-i2fp.ll)si2fp_v8i64_v8bf16-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zvfhmin,+zvfbfmin,+f,+d,+xtheadba,+zfh -O3

Generated 2026-11-29 14:49 UTC.