[llvm] Fold fneg through FP16_TO_FP and FP_TO_FP16 in getNegatedExpression. (PR #178865)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 30 03:20:42 PST 2026


Xylecrack wrote:

Hi @arsenm. i have implemented fp16_to_fp faithful to the patch you provided. but is doing ISD::XOR on FP not causing violation? since xor is a integer bitwise operation.

Also some of the test cases failing are `v_mac_f16.ll` (not autogenerated?) and ` CodeGenCXX/amdgpu-float16.cpp`. Are check fails expected here?

https://github.com/llvm/llvm-project/pull/178865


More information about the llvm-commits mailing list