fallback: translate: sdiv <N x i8>

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: sdiv <N x i8> M
Occurrences:3 in 3 configs, 3 test files, 10 more counted only
Snippet from:shadow-stack-frame-opts.47994d8287.ll (mutant of shadow-stack-frame-opts.ll) @caller_sw_tail via llvm-extract
Config:-mtriple=riscv32 -mattr=+zimop,+save-restore,+zhinx -O3 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global <8 x i8>

declare i32 @callee(i32)

; Function Attrs: shadowcallstack
define i32 @caller_sw_tail(i32 %x) #0 {
  %B = sdiv <8 x i8> zeroinitializer, zeroinitializer
  %sub = sub nsw i32 0, %x
  %call = tail call i32 @callee(i32 %sub)
  store <8 x i8> %B, ptr @G.3, align 8
  ret i32 %call
}

attributes #0 = { shadowcallstack }

Reproduce:

llc -mtriple=riscv32 -mattr=+zimop,+save-restore,+zhinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zimop,+save-restore,+zhinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sdiv: '  %B = sdiv <8 x i8> zeroinitializer, zeroinitializer' (in function: caller_sw_tail)
warning: Instruction selection used fallback path for caller_sw_tail

Occurrences (3):

InputFunctionConfig
half-convert-strict.e584242cec.ll (mutant of half-convert-strict.ll)fcvt_w_h_signext-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation -mattr=+zdinx,+zhinx,+zvbb -O0
shadow-stack-frame-opts.47994d8287.ll (mutant of shadow-stack-frame-opts.ll)caller_sw_tail-mtriple=riscv32 -mattr=+zimop,+save-restore,+zhinx -O3 -verify-machineinstrs
smulh.ce20d5ac9d.ll (mutant of smulh.ll)smulh_v4i32-mtriple=riscv32 -mattr=+m,+zvbb,+zdinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.