fallback: translate: and i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: and i32 M
Occurrences:18 in 14 configs, 14 test files, 281 more counted only
Snippet from:half-bitmanip-dagcombines.830664e1b3.ll (mutant of half-bitmanip-dagcombines.ll) @fneg via llvm-extract
Config:-mtriple=riscv32 -target-abi ilp32 -verify-machineinstrs -mattr=+zhinx,+zba,+m -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define half @fneg(half %a) #0 {
  %B = and i32 -1, 0
  %1 = fneg half %a
  store i32 %B, ptr poison, align 4
  ret half %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -target-abi ilp32 -verify-machineinstrs -mattr=+zhinx,+zba,+m -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi ilp32 -verify-machineinstrs -mattr=+zhinx,+zba,+m -O2 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: and: '  %B = and i32 -1, 0' (in function: fneg)
warning: Instruction selection used fallback path for fneg

Occurrences (18) (first 15):

InputFunctionConfig
avgflooru.86cf97eb0d.ll (mutant of avgflooru.ll)test_fixed_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
bittest.73cb64af1c.ll (mutant of bittest.ll)bit_11_1_z_select_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx,+zicsr -O2
cmov-branch-opt.0a122ad321.ll (mutant of cmov-branch-opt.ll)select_or_1-mtriple=riscv64 -verify-machineinstrs -mattr=+c,+zdinx -O0
fixed-vectors-vssub-vp.592b6965e2.ll (mutant of fixed-vectors-vssub-vp.ll)vssub_vv_v4i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2
fold-masked-merge.3cc4c4473a.ll (mutant of fold-masked-merge.ll)not_a_masked_merge0-mtriple=riscv32 -mattr=+zdinx,+zcb -O0 -verify-machineinstrs
fold-masked-merge.3cc4c4473a.ll (mutant of fold-masked-merge.ll)not_a_masked_merge1-mtriple=riscv32 -mattr=+zdinx,+zcb -O0 -verify-machineinstrs
fold-masked-merge.3cc4c4473a.ll (mutant of fold-masked-merge.ll)masked_merge_no_transform2-mtriple=riscv32 -mattr=+zdinx,+zcb -O0 -verify-machineinstrs
half-bitmanip-dagcombines.830664e1b3.ll (mutant of half-bitmanip-dagcombines.ll)fneg-mtriple=riscv32 -target-abi ilp32 -verify-machineinstrs -mattr=+zhinx,+zba,+m -O2
min-max.5d32a6783c.ll (mutant of min-max.ll)smax_i32_pos_constant_trailing_zeros-mtriple=riscv32 -mattr=+zhinx -O1 -verify-machineinstrs
rotl-rotr.e7a4bf213d.ll (mutant of rotl-rotr.ll)rotl_32_mask_and_63_and_31-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -code-model=medium
rv32zba.490a15ba3d.ll (mutant of rv32zba.ll)addmul20-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
rv32zba.490a15ba3d.ll (mutant of rv32zba.ll)shl_add_knownbits-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2
rv32zbb-zbkb.ff323671d5.ll (mutant of rv32zbb-zbkb.ll)disjoint_or_xnor_knownbits_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O0
rv32zbs.1fecf94185.ll (mutant of rv32zbs.ll)bext_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbs,+zbb,+zdinx -O3
rv32zbs.1fecf94185.ll (mutant of rv32zbs.ll)bset_trailing_ones_i32_mask-mtriple=riscv32 -verify-machineinstrs -mattr=+zbs,+zbb,+zdinx -O3

Generated 2026-11-29 14:49 UTC.