fallback: translate: cmpxchg ptr
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: cmpxchg ptr M |
| Occurrences: | 3 in 3 configs, 2 test files, 47 more counted only |
| Snippet from: | atomic-cmpxchg.4df34c2866.ll (mutant of atomic-cmpxchg.ll) @cmpxchg_i32_monotonic_monotonic via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+zfinx -O1 -code-model=small |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @cmpxchg_i32_monotonic_monotonic(ptr %ptr, i32 %cmp, i32 %val) #0 {
%res = cmpxchg ptr %ptr, i32 %cmp, i32 %val monotonic monotonic, align 4
%B = add i32 %cmp, %cmp
store i32 %B, ptr poison, align 4
ret void
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+zfinx -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+zfinx -O1 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: cmpxchg: ' %res = cmpxchg ptr %ptr, i32 %cmp, i32 %val monotonic monotonic, align 4' (in function: cmpxchg_i32_monotonic_monotonic)
warning: Instruction selection used fallback path for cmpxchg_i32_monotonic_monotonic
Occurrences (3):
| Input | Function | Config |
|---|
| atomic-cmpxchg.4df34c2866.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i32_monotonic_monotonic | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+zfinx -O1 -code-model=small |
| atomic-cmpxchg.d73fc24af5.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i32_seq_cst_monotonic | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zfinx,+zicond -O0 -code-model=medium |
| atomic-cmpxchg.e6de6bc429.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i64_monotonic_monotonic | -mtriple=riscv64 -mattr=+a,+zacas,+zdinx,+zfinx -O0 -code-model=small -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.