fallback: translate: bitcast i256~

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: bitcast i256~ M
Occurrences:4 in 4 configs, 2 test files, 14 more counted only
Snippet from:fixed-vectors-shuffle-exact-vlen.58ea213c.ad243e62.6bdd19b5.1481385e9c.ll (mutant of fixed-vectors-shuffle-exact-vlen.58ea213c.ad243e62.6bdd19b5.ll) @shuffle_i256_ldst via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zbb -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global <4 x i256>
@G.10 = external global <4 x i256>

; Function Attrs: vscale_range(2,2)
define void @shuffle_i256_ldst(ptr %p) #0 {
  %A = alloca <4 x i256>, align 128
  %a = load <4 x i256>, ptr %p, align 128
  %LGV = load <4 x i256>, ptr @G.2, align 128
  store <4 x i256> poison, ptr %A, align 128
  %B = srem <4 x i256> %LGV, zeroinitializer
  %S = shufflevector <4 x i256> %a, <4 x i256> %LGV, <4 x i32> poison
  store <4 x i256> %S, ptr %A, align 128
  %res = shufflevector <4 x i256> %a, <4 x i256> poison, <4 x i32> <i32 0, i32 0, i32 3, i32 2>
  store <4 x i256> %res, ptr %p, align 128
  store <4 x i256> %B, ptr @G.10, align 128
  ret void
}

attributes #0 = { vscale_range(2,2) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: bitcast: '  %const = bitcast i256 255 to i256' (in function: shuffle_i256_ldst)
warning: Instruction selection used fallback path for shuffle_i256_ldst

Occurrences (4):

InputFunctionConfig
fixed-vectors-shuffle-exact-vlen.58ea213c.ad243e62.6bdd19b5.1481385e9c.ll (mutant of fixed-vectors-shuffle-exact-vlen.58ea213c.ad243e62.6bdd19b5.ll)shuffle_i256_ldst-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zbb -O3
idiv_large.f96cb14f.d10642a2.85cebda9.0161c6f8.68cd1be7.c60a73426e.ll (mutant of idiv_large.f96cb14f.d10642a2.85cebda9.0161c6f8.68cd1be7.ll)udiv_i129-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zbkb,+zihintpause -O2
idiv_large.f96cb14f.d10642a2.85cebda9.0161c6f8.68cd1be7.ca1130476b.ll (mutant of idiv_large.f96cb14f.d10642a2.85cebda9.0161c6f8.68cd1be7.ll)udiv_i129-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zbkb,+zba -O2
idiv_large.f96cb14f.d10642a2.85cebda9.0161c6f8.68cd1be7.cbfcb6732f.ll (mutant of idiv_large.f96cb14f.d10642a2.85cebda9.0161c6f8.68cd1be7.ll)udiv_i129-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zbkb,+zba -O1

Generated 2026-11-29 14:49 UTC.