fallback: translate: sub i1

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: sub i1 M
Occurrences:3 in 3 configs, 3 test files, 20 more counted only
Snippet from:attributes.8d8354ab0c.ll (mutant of attributes.ll) @atomic_load_i8_seq_cst via llvm-extract
Config:-mtriple=riscv64 -mattr=+zdinx -O1 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global i1

; Function Attrs: nounwind
define i8 @atomic_load_i8_seq_cst(ptr %a) #0 {
  %B = sub i1 false, true
  %1 = load atomic i8, ptr %a seq_cst, align 1
  store i1 %B, ptr @G.1, align 1
  ret i8 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sub: '  %B = sub i1 false, true' (in function: atomic_load_i8_seq_cst)
warning: Instruction selection used fallback path for atomic_load_i8_seq_cst

Occurrences (3):

InputFunctionConfig
attributes.8d8354ab0c.ll (mutant of attributes.ll)atomic_load_i8_seq_cst-mtriple=riscv64 -mattr=+zdinx -O1 -verify-machineinstrs
inline-asm-zhinx-constraint-r.3635a6ecd3.ll (mutant of inline-asm-zhinx-constraint-r.ll)constraint_r_half-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinx -O1
short-forward-branch-opt-load-atomic-acquire-seq_cst.b5cbbedfae.ll (mutant of short-forward-branch-opt-load-atomic-acquire-seq_cst.ll)test_i16_s_1_3-verify-machineinstrs -mtriple=riscv64 -mattr=+a,+short-forward-branch-ialu,+zvkb,+zhinx -O0 -code-model=small

Generated 2026-11-29 14:49 UTC.