fallback: translate: bitcast <N x i1>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: bitcast <N x i1> M
Occurrences:5 in 2 configs, 2 test files, 1 more counted only
Snippet from:fixed-vectors-masked-load-int.13b1ab6cf7.ll (mutant of fixed-vectors-masked-load-int.ll) @masked_load_v2i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define <2 x i32> @masked_load_v2i32(ptr %a, <2 x i1> %mask) {
  %load = call <2 x i32> @llvm.masked.load.v2i32.p0(ptr align 8 %a, <2 x i1> %mask, <2 x i32> poison)
  %C = fcmp false bfloat 1.000000e+00, +qnan
  store i1 %C, ptr poison, align 1
  ret <2 x i32> %load
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: read)
declare <2 x i32> @llvm.masked.load.v2i32.p0(ptr captures(none), <2 x i1>, <2 x i32>) #0

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: read) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: bitcast: '  %scalar_mask = bitcast <2 x i1> %mask to i2' (in function: masked_load_v2i32)
warning: Instruction selection used fallback path for masked_load_v2i32

Occurrences (5):

InputFunctionConfig
fixed-vectors-insert-subvector-shuffle.6de13cdb3d.ll (mutant of fixed-vectors-insert-subvector-shuffle.ll)insert_subvector_vp_load_v4i32_v4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O3
fixed-vectors-masked-load-int.13b1ab6cf7.ll (mutant of fixed-vectors-masked-load-int.ll)masked_load_v2i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
fixed-vectors-masked-load-int.13b1ab6cf7.ll (mutant of fixed-vectors-masked-load-int.ll)masked_load_v2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
fixed-vectors-masked-load-int.13b1ab6cf7.ll (mutant of fixed-vectors-masked-load-int.ll)masked_load_v4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
fixed-vectors-masked-load-int.13b1ab6cf7.ll (mutant of fixed-vectors-masked-load-int.ll)masked_load_v4i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3

Generated 2026-11-29 14:49 UTC.