fallback: translate: fence

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: fence M
Occurrences:3 in 3 configs, 3 test files, 195 more counted only
Snippet from:atomic-load-zext.35c6d96257.ll (mutant of atomic-load-zext.ll) @atomic_load_i32_seq_cst via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zdinx -O2
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i32

; Function Attrs: nounwind
define zeroext i32 @atomic_load_i32_seq_cst(ptr %a) #0 {
  %1 = load atomic i32, ptr %a seq_cst, align 4
  %B = urem i32 %1, %1
  store i32 %B, ptr @G.2, align 4
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: fence: '  fence seq_cst' (in function: atomic_load_i32_seq_cst)
warning: Instruction selection used fallback path for atomic_load_i32_seq_cst

Occurrences (3):

InputFunctionConfig
atomic-fence.48cd8fbe61.ll (mutant of atomic-fence.ll)fence_singlethread_seq_cst-mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zve32x,+zfinx -O1
atomic-load-zext.35c6d96257.ll (mutant of atomic-load-zext.ll)atomic_load_i32_seq_cst-mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zdinx -O2
attributes.f211da4fe8.ll (mutant of attributes.ll)atomic_load_i8_seq_cst-mtriple=riscv64 -mattr=+zaamo,+zalrsc,+zicsr,+zdinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.