fallback: translate: alloca <N x i1>

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:translate: alloca <N x i1> M
Occurrences:58 in 28 configs, 25 test files
Snippet from:half-imm.333f4662a4.ll (mutant of half-imm.ll) @half_positive_zero via llvm-extract
Config:-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64
Local check:reproduces at d9924131a4
Compiler Explorer:https://godbolt.org/z/vTTdvnqvv (llc-assertions-trunk, checked 2026-10-30 09:36 UTC): G falls back differently

Snippet:

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

; Function Attrs: nounwind
define half @half_positive_zero(ptr %pf) #0 {
  %A = alloca <2 x i1>, align 1
  store <2 x i1> poison, ptr %A, align 1
  %C1 = icmp ugt <2 x i64> splat (i64 42), splat (i64 9223372036854775807)
  %LGV = load float, ptr @G, align 4
  %C = fcmp ole float %LGV, 0.000000e+00
  store i1 %C, ptr @G.1, align 1
  store <2 x i1> %C1, ptr %A, align 1
  ret half 0.000000e+00
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*010remark: <unknown>:0:0: unable to legalize instruction: G_STORE %7:_(<2 x s1>), %1:_(p0) :: (store (<2 x s1>) into %ir.A) (in function: half_positive_zero)
warning: Instruction selection used fallback path for half_positive_zero
SelectionDAG (control)-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -global-isel=0010-

Reproduce:

llc -mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: alloca: '  %A = alloca <2 x i1>, align 1' (in function: half_positive_zero)
warning: Instruction selection used fallback path for half_positive_zero

Occurrences (58) (first 15):

InputFunctionConfig
copysign-casts.12aac17ed0.ll (mutant of copysign-casts.ll)fold_promote_f_h-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -target-abi ilp32
copysign-casts.8c52de9f5d.ll (mutant of copysign-casts.ll)fold_promote_f_h-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -target-abi lp64
double-calling-conv.7f0ccd9b54.ll (mutant of double-calling-conv.ll)caller_double_stack-mtriple=riscv32 -mattr=+zdinx -target-abi=ilp32 -verify-machineinstrs
double-fcmp.20913c2578.ll (mutant of double-fcmp.ll)fcmp_ogt-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-fcmp.58d873bb41.ll (mutant of double-fcmp.ll)fcmp_ogt-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-imm.945644047e.ll (mutant of double-imm.ll)poison-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-imm.d8a139a765.ll (mutant of double-imm.ll)poison-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-maximum-minimum.0de2424c71.ll (mutant of double-maximum-minimum.ll)fminimum_nnan_f64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64
double-maximum-minimum.82c03823d6.ll (mutant of double-maximum-minimum.ll)fminimum_nnan_f64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
double-previous-failure.625b85443b.ll (mutant of double-previous-failure.ll)main-mtriple=riscv32 -mattr=+zdinx -target-abi=ilp32 -verify-machineinstrs
fastcc-without-f-reg.1323f21abe.ll (mutant of fastcc-without-f-reg.ll)callee_float_32-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
fastcc-without-f-reg.1fe7f1c401.ll (mutant of fastcc-without-f-reg.ll)callee_float_32-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
fastcc-without-f-reg.42279d595a.ll (mutant of fastcc-without-f-reg.ll)callee_float_32-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs
fastcc-without-f-reg.6db5ecbe7f.ll (mutant of fastcc-without-f-reg.ll)callee_float_32-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs
fastcc-without-f-reg.7b654a72e3.ll (mutant of fastcc-without-f-reg.ll)callee_float_32-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.