fallback: translate: call llvm.ptrmask.p0.i32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.ptrmask.p0.i32 M |
| Occurrences: | 5 in 4 configs, 3 test files, 48 more counted only |
| Snippet from: | atomic-rmw.0c6191682d.ll (mutant of atomic-rmw.ll) @atomicrmw_sub_i8_seq_cst via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i8
; Function Attrs: nounwind
define i8 @atomicrmw_sub_i8_seq_cst(ptr %a, i8 %b) #0 {
%1 = atomicrmw sub ptr %a, i8 %b seq_cst, align 1
%B = or i8 %1, %1
store i8 %B, ptr @G.1, align 1
ret i8 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.ptrmask.p0.i32: ' %AlignedAddr = call ptr @llvm.ptrmask.p0.i32(ptr %a, i32 -4)' (in function: atomicrmw_sub_i8_seq_cst)
warning: Instruction selection used fallback path for atomicrmw_sub_i8_seq_cst
Occurrences (5):
| Input | Function | Config |
|---|
| atomic-cmpxchg.29b8119947.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i8_acquire_monotonic | -mtriple=riscv32 -mattr=+a,+zacas,+zhinx -O2 -verify-machineinstrs |
| atomic-cmpxchg.9d468d0658.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i16_monotonic_monotonic | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+zfinx -O0 |
| atomic-cmpxchg.9d468d0658.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i16_seq_cst_monotonic | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+zfinx -O0 |
| atomic-cmpxchg.d73fc24af5.ll (mutant of atomic-cmpxchg.ll) | cmpxchg_i16_acquire_acquire | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zfinx,+zicond -O0 -code-model=medium |
| atomic-rmw.0c6191682d.ll (mutant of atomic-rmw.ll) | atomicrmw_sub_i8_seq_cst | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O2 |
Generated 2026-11-29 14:49 UTC.