fallback: legalize: G_FNEG

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:legalize: G_FNEG
Occurrences:68 in 7 configs, 2 test files
Snippet from:half-bitmanip-dagcombines.ll @fneg via llvm-extract
Config:-mtriple=riscv32 -target-abi ilp32 -mattr=+zfhmin -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define half @fneg(half %a) #0 {
  %1 = fneg half %a
  ret half %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %3:_(f16) = G_FNEG %0:_ (in function: fneg)
warning: Instruction selection used fallback path for fneg

Occurrences (68) (first 15):

InputFunctionConfig
half-arith.llfneg_h-mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f
half-arith.llfsgnjn_h-mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f
half-arith.llfnmadd_h_3-mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f
half-arith.llfnmadd_nsz-mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f
half-arith.llfneg_h-mtriple=riscv32 -verify-machineinstrs
half-arith.llfsgnjn_h-mtriple=riscv32 -verify-machineinstrs
half-arith.llfnmadd_h_3-mtriple=riscv32 -verify-machineinstrs
half-arith.llfnmadd_nsz-mtriple=riscv32 -verify-machineinstrs
half-arith.llfneg_h-mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f
half-arith.llfsgnjn_h-mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f
half-arith.llfnmadd_h_3-mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f
half-arith.llfnmadd_nsz-mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f
half-arith.llfneg_h-mtriple=riscv64 -verify-machineinstrs
half-arith.llfsgnjn_h-mtriple=riscv64 -verify-machineinstrs
half-arith.llfnmadd_h_3-mtriple=riscv64 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.