fallback: translate: cmpxchg ptr
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: cmpxchg ptr M |
| Occurrences: | 4 in 4 configs, 2 test files, 29 more counted only |
| Snippet from: | atomic-cmpxchg.2e5c9b9bac.ll (mutant of atomic-cmpxchg.ll) @cmpxchg_i64_seq_cst_monotonic via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zdinx,+zbs -O2 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global { i64, i1 }
; Function Attrs: nounwind
define void @cmpxchg_i64_seq_cst_monotonic(ptr %ptr, i64 %cmp, i64 %val) #0 {
%res = cmpxchg ptr %ptr, i64 %cmp, i64 %val seq_cst monotonic, align 8
store { i64, i1 } %res, ptr @G.4, align 4
ret void
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zdinx,+zbs -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zdinx,+zbs -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: cmpxchg: ' %res = cmpxchg ptr %ptr, i64 %cmp, i64 %val seq_cst monotonic, align 8' (in function: cmpxchg_i64_seq_cst_monotonic)
warning: Instruction selection used fallback path for cmpxchg_i64_seq_cst_monotonic
Occurrences (4):
| Input | Function | Config |
|---|
| atomic-cmpxchg.0b64c0c63e.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i64_acq_rel_acquire | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zacas,+zabha,+zfinx,+zve32x -O0 |
| atomic-cmpxchg.19f959c05d.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i64_acquire_acquire | -mtriple=riscv64 -mattr=+a,+zacas,+zbs,+zhinx -O2 -code-model=medium -verify-machineinstrs |
| atomic-cmpxchg.2e5c9b9bac.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i64_seq_cst_monotonic | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zdinx,+zbs -O2 |
| atomic-cmpxchg.8c95ea7c5d.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i32_release_acquire | -mtriple=riscv32 -mattr=+a,+zacas,+zfinx -O2 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.