fallback: translate: icmp ptr

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: icmp ptr M
Occurrences:4 in 3 configs, 2 test files, 6 more counted only
Snippet from:select.8e9af43e27.ll (mutant of select.ll) @select_redundant_czero_eqz1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zfinx -O0
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@select_redundant_czero_eqz_data = external global i32, align 4
@G.4 = external global i1

define void @select_redundant_czero_eqz1(ptr %0, ptr %1) {
entry:
  %2 = icmp eq ptr %0, null
  %3 = select i1 %2, ptr @select_redundant_czero_eqz_data, ptr %0
  %L = load half, ptr %3, align 2
  %C = fcmp ole half %L, 5.960460e-08
  store ptr %3, ptr %1, align 8
  store i1 %C, ptr @G.4, align 1
  ret void
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zfinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zfinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: icmp: '  %2 = icmp eq ptr %0, null' (in function: select_redundant_czero_eqz1)
warning: Instruction selection used fallback path for select_redundant_czero_eqz1

Occurrences (4):

InputFunctionConfig
exception-pointer-register.0dc8f4eb47.ll (mutant of exception-pointer-register.ll)caller-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1
exception-pointer-register.ab23e356ad.ll (mutant of exception-pointer-register.ll)caller-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3 -code-model=medium
select.8e9af43e27.ll (mutant of select.ll)select_redundant_czero_eqz1-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zfinx -O0
select.8e9af43e27.ll (mutant of select.ll)select_redundant_czero_eqz2-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zfinx -O0

Generated 2026-11-29 14:49 UTC.