fallback: translate: call llvm.ptrmask.p0.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.ptrmask.p0.i64 M |
| Occurrences: | 4 in 3 configs, 3 test files, 40 more counted only |
| Snippet from: | atomic-masked-merge-zero.db78cc53a0.ll (mutant of atomic-masked-merge-zero.ll) @cmpxchg_i8_zero_success via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zhinx -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i1 @cmpxchg_i8_zero_success(ptr %p, i8 %cmp) #0 {
%r = cmpxchg ptr %p, i8 %cmp, i8 0 acquire monotonic, align 1
%s = extractvalue { i8, i1 } %r, 1
%B = add i1 %s, %s
ret i1 %B
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zhinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.ptrmask.p0.i64: ' %AlignedAddr = call ptr @llvm.ptrmask.p0.i64(ptr %p, i64 -4)' (in function: cmpxchg_i8_zero_success)
warning: Instruction selection used fallback path for cmpxchg_i8_zero_success
Occurrences (4):
| Input | Function | Config |
|---|
| atomic-cmpxchg.2e5c9b9bac.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i16_seq_cst_acquire | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zdinx,+zbs -O2 |
| atomic-masked-merge-zero.db78cc53a0.ll (mutant of atomic-masked-merge-zero.ll) | cmpxchg_i8_zero_success | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zhinx -O1 |
| atomic-masked-merge-zero.db78cc53a0.ll (mutant of atomic-masked-merge-zero.ll) | atomicrmw_min_i8_zero | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+zhinx -O1 |
| atomicrmw-xchg.6c5b9a3570.ll (mutant of atomicrmw-xchg.ll) | atomicrmw_xchg_i16_release | -mtriple=riscv64 -mattr=+a,+zfinx -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.