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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.memset.p0.i32 M
Occurrences:6 in 5 configs, 2 test files, 7 more counted only
Snippet from:memset.6fa9b47fae.ll (mutant of memset.ll) @memset_i32_2147483648 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zdinx -O3 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i1

; Function Attrs: nounwind
define void @memset_i32_2147483648(ptr %dest, i8 %val) #0 {
entry:
  call void @llvm.memset.p0.i32(ptr %dest, i8 %val, i32 -2147483648, i1 false)
  %C = fcmp uge half +qnan, +qnan
  store i1 %C, ptr @G.3, align 1
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i32(ptr writeonly captures(none), i8, i32, i1 immarg) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) }

Reproduce:

llc -mtriple=riscv64 -mattr=+zdinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zdinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.memset.p0.i32: '  call void @llvm.memset.p0.i32(ptr align 1 %dest, i8 %val, i32 -2147483648, i1 false)' (in function: memset_i32_2147483648)
warning: Instruction selection used fallback path for memset_i32_2147483648

Occurrences (6):

InputFunctionConfig
memset.6fa9b47fae.ll (mutant of memset.ll)memset_i32_2147483648-mtriple=riscv64 -mattr=+zdinx -O3 -verify-machineinstrs
memset.ec8add818b.ll (mutant of memset.ll)memset_i32_2147483648-mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs
memset.ec8add818b.ll (mutant of memset.ll)memset_zero_i32_2147483648-mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs
xqcilsm-memset.295b9e9bd4.ll (mutant of xqcilsm-memset.ll)test3-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3 -code-model=small
xqcilsm-memset.7aa9b577c9.ll (mutant of xqcilsm-memset.ll)test5-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O0
xqcilsm-memset.daf84125d3.ll (mutant of xqcilsm-memset.ll)test7a-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1

Generated 2026-11-29 14:49 UTC.