ac/llvm: force fneg/fabs to flush denorms to zero if requested
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 14 Oct 2019 13:39:06 +0000 (15:39 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 18 Oct 2019 14:55:55 +0000 (16:55 +0200)
commit2c2aaf275c1edba38c552ac74de4d46bb2ebfbe8
treecb66a28410c2c0d008f4e13170426f142e7bfc9f
parent7dfb15fff1d765689353419c0a0ac9c96786b021
ac/llvm: force fneg/fabs to flush denorms to zero if requested

LLVM optimizes these instructions with XOR/AND and it loses
the sign bit.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/llvm/ac_nir_to_llvm.c