fallback: translate: atomicrmw ptr
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: atomicrmw ptr M |
| Occurrences: | 6 in 5 configs, 4 test files, 87 more counted only |
| Snippet from: | atomicrmw-add-sub.27787e3ade.ll (mutant of atomicrmw-add-sub.ll) @atomicrmw_sub_i32 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+a,+zabha,+zfinx -O1 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i32
; Function Attrs: nounwind
define i32 @atomicrmw_sub_i32(ptr %ptr, i32 %rhs) #0 {
%res = atomicrmw sub ptr %ptr, i32 %rhs seq_cst, align 4
%B = ashr i32 %res, %rhs
store i32 %B, ptr @G, align 4
ret i32 %res
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -mattr=+a,+zabha,+zfinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+a,+zabha,+zfinx -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: atomicrmw: ' %res = atomicrmw sub ptr %ptr, i32 %rhs seq_cst, align 4' (in function: atomicrmw_sub_i32)
warning: Instruction selection used fallback path for atomicrmw_sub_i32
Occurrences (6):
| Input | Function | Config |
|---|
| atomic-rmw.0778f92655.ll (mutant of atomic-rmw.ll) | atomicrmw_umin_i32_monotonic | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zabha,+zacas,+zfinx -O0 |
| atomic-signext.f4322b77ff.ll (mutant of atomic-signext.ll) | atomicrmw_add_i64_monotonic | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zacas,+zhinx -O0 |
| atomicrmw-add-sub.062a393df2.ll (mutant of atomicrmw-add-sub.ll) | atomicrmw_add_i32 | -mtriple=riscv32 -mattr=+a,+zhinx -O3 -verify-machineinstrs |
| atomicrmw-add-sub.27787e3ade.ll (mutant of atomicrmw-add-sub.ll) | atomicrmw_sub_i32 | -mtriple=riscv32 -mattr=+a,+zabha,+zfinx -O1 -verify-machineinstrs |
| atomicrmw-add-sub.27787e3ade.ll (mutant of atomicrmw-add-sub.ll) | atomicrmw_sub_i32_constant | -mtriple=riscv32 -mattr=+a,+zabha,+zfinx -O1 -verify-machineinstrs |
| atomicrmw-and-or-xor.e300ec4bb2.ll (mutant of atomicrmw-and-or-xor.ll) | atomicrmw_or_i32_monotonic | -mtriple=riscv64 -mattr=+a,+zfinx -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.