fallback: translate: call llvm.ptrmask.p0.i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.ptrmask.p0.i32 M
Occurrences:3 in 3 configs, 3 test files, 68 more counted only
Snippet from:atomic-rmw.6a5ae036f1.ll (mutant of atomic-rmw.ll) @atomicrmw_add_i16_acquire via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O0 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i1

; Function Attrs: nounwind
define i16 @atomicrmw_add_i16_acquire(ptr %a, i16 %b) #0 {
  %1 = atomicrmw add ptr %a, i16 %b acquire, align 2
  %C = icmp ne i16 0, %b
  store i1 %C, ptr @G.3, align 1
  ret i16 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O0 -code-model=small -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_add_i16_acquire)
warning: Instruction selection used fallback path for atomicrmw_add_i16_acquire

Occurrences (3):

InputFunctionConfig
atomic-cmpxchg.7637e12d46.ll (mutant of atomic-cmpxchg.ll)cmpxchg_i16_seq_cst_seq_cst-mtriple=riscv32 -verify-machineinstrs -mattr=+-a,+zaamo,+zalrsc,+zbs,+zhinx -O0
atomic-rmw.6a5ae036f1.ll (mutant of atomic-rmw.ll)atomicrmw_add_i16_acquire-mtriple=riscv32 -verify-machineinstrs -mattr=+a,+ztso,+zdinx -O0 -code-model=small
atomicrmw-xchg.be3d98a597.ll (mutant of atomicrmw-xchg.ll)atomicrmw_xchg_i8_acq_rel-mtriple=riscv32 -mattr=+a,+zve32x,+zdinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.