fallback: translate: sub i8

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: sub i8 M
Occurrences:6 in 6 configs, 6 test files, 29 more counted only
Snippet from:push-pop-popret.6a8a98592e.ll (mutant of push-pop-popret.ll) @foo_with_irq via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zcmp,+save-restore,+zdinx -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.5 = external global i8

declare i32 @foo_test_irq(...)

define void @foo_with_irq() #0 {
  %B = sub i8 0, 42
  %call = call i32 @foo_test_irq()
  store i8 %B, ptr @G.5, align 1
  ret void
}

attributes #0 = { "interrupt"="machine" }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %B = sub i8 0, 42' (in function: foo_with_irq)
warning: Instruction selection used fallback path for foo_with_irq

Occurrences (6):

InputFunctionConfig
abds-neg.3b998c81bc.ll (mutant of abds-neg.ll)abd_subnsw_i8-mtriple=riscv64 -mattr=+zhinx -O0 -verify-machineinstrs
ctlz-cttz-ctpop.ebcfa44a43.ll (mutant of ctlz-cttz-ctpop.ll)test_ctpop_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx -O2
machine-outliner-throw.564c47a7e2.ll (mutant of machine-outliner-throw.ll)func2-verify-machineinstrs -enable-machine-outliner -mtriple=riscv64 -mattr=+m,+zfinx -O2
push-pop-popret.6a8a98592e.ll (mutant of push-pop-popret.ll)foo_with_irq-mtriple=riscv32 -verify-machineinstrs -mattr=+zcmp,+save-restore,+zdinx -O1
scmp.72fd29c984.ll (mutant of scmp.ll)scmp.8.8-mtriple=riscv32 -mattr=+zdinx,+zcb -O3 -verify-machineinstrs
stack-clash-prologue-nounwind.288419072f.ll (mutant of stack-clash-prologue-nounwind.ll)f3-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx -O0

Generated 2026-11-29 14:49 UTC.