fallback: translate: cmpxchg ptr
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: cmpxchg ptr M |
| Occurrences: | 4 in 3 configs, 3 test files, 54 more counted only |
| Snippet from: | atomic-cmpxchg.ffa3314d60.ll (mutant of atomic-cmpxchg.ll) @cmpxchg_i8_acquire_monotonic via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+a,+zacas,+zabha,+zhinx -O2 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
; Function Attrs: nounwind
define void @cmpxchg_i8_acquire_monotonic(ptr %ptr, i8 %cmp, i8 %val) #0 {
%res = cmpxchg ptr %ptr, i8 %cmp, i8 %val acquire monotonic, align 1
%B = srem i8 %cmp, %cmp
store i8 %B, ptr @G, align 1
ret void
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -mattr=+a,+zacas,+zabha,+zhinx -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+a,+zacas,+zabha,+zhinx -O2 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: cmpxchg: ' %res = cmpxchg ptr %ptr, i8 %cmp, i8 %val acquire monotonic, align 1' (in function: cmpxchg_i8_acquire_monotonic)
warning: Instruction selection used fallback path for cmpxchg_i8_acquire_monotonic
Occurrences (4):
| Input | Function | Config |
|---|
| atomic-cmpxchg.826ebae883.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i32_acquire_acquire | -mtriple=riscv32 -verify-machineinstrs -mattr=+zaamo,+zalrsc,+zfinx -O1 -code-model=small |
| atomic-cmpxchg.ffa3314d60.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i8_acquire_monotonic | -mtriple=riscv64 -mattr=+a,+zacas,+zabha,+zhinx -O2 -verify-machineinstrs |
| atomic-cmpxchg.ffa3314d60.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i32_seq_cst_acquire | -mtriple=riscv64 -mattr=+a,+zacas,+zabha,+zhinx -O2 -verify-machineinstrs |
| atomic-signext.b5e1a8042e.ll (mutant of atomic-signext.ll) | cmpxchg_i32_monotonic_monotonic_val0 | -mtriple=riscv32 -verify-machineinstrs -mattr=+-a,+zaamo,+zalrsc,+zdinx -O3 |
Generated 2026-11-29 14:49 UTC.