fallback: translate: alloca i8

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:translate: alloca i8 M
Occurrences:12 in 12 configs, 5 test files
Snippet from:half-frem.2e6dea316c.ll (mutant of half-frem.ll) @frem_f16 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global half

; Function Attrs: nounwind
define half @frem_f16(half %a, half %b) #0 {
  %A = alloca i8, align 1
  %L = load half, ptr %A, align 2
  %B2 = fsub half %a, %L
  store i8 poison, ptr %A, align 1
  %LGV = load half, ptr @G, align 2
  %B = fmul half %b, %LGV
  %B1 = sdiv i8 0, -1
  %1 = frem half %a, %B
  store i8 %B1, ptr %A, align 1
  store half %B2, ptr @G, align 2
  ret half %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (12):

InputFunctionConfig
double-frem.94d70b2517.ll (mutant of double-frem.ll)frem_f64-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs
double-frem.f142edbfce.ll (mutant of double-frem.ll)frem_f64-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs
double-stack-spill-restore.81e16b3279.ll (mutant of double-stack-spill-restore.ll)func-mtriple=riscv32 -mattr=+zdinx -target-abi=ilp32 -verify-machineinstrs
double-stack-spill-restore.a1e5c52f5a.ll (mutant of double-stack-spill-restore.ll)func-mtriple=riscv64 -mattr=+zdinx -target-abi=lp64 -verify-machineinstrs
float-frem.098cc618fa.ll (mutant of float-frem.ll)frem_f32-mtriple=riscv32 -mattr=+zfinx -verify-machineinstrs
float-frem.e94a2789f2.ll (mutant of float-frem.ll)frem_f32-mtriple=riscv64 -mattr=+zfinx -verify-machineinstrs
half-frem.2e6dea316c.ll (mutant of half-frem.ll)frem_f16-mtriple=riscv32 -mattr=+zhinxmin -verify-machineinstrs -target-abi ilp32
half-frem.41dc0be99a.ll (mutant of half-frem.ll)frem_f16-mtriple=riscv32 -mattr=+zhinx -verify-machineinstrs -target-abi ilp32
half-frem.ad32204295.ll (mutant of half-frem.ll)frem_f16-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64
half-frem.fe722fee15.ll (mutant of half-frem.ll)frem_f16-mtriple=riscv64 -mattr=+zhinxmin -verify-machineinstrs -target-abi lp64
llvm.frexp.cd3d8b0ec4.ll (mutant of llvm.frexp.ll)test_frexp_f16_i32_only_use_exp-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
llvm.frexp.df48a954ac.ll (mutant of llvm.frexp.ll)test_frexp_f16_i32_only_use_exp-mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64

Generated 2026-11-29 14:49 UTC.