OSDN Git Service

broadcom/vc5: Stop lowering negates to subs.
authorEric Anholt <eric@anholt.net>
Thu, 26 Oct 2017 22:40:38 +0000 (15:40 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Oct 2017 20:31:28 +0000 (13:31 -0700)
commit4d2619a6b3d94a02b21fdc8fc49c1542e82bc7d8
tree407e8314489654131c2001554a76a09bf4881d2a
parenta797f0eb6371efb78bee5f5aea73c5cdcfbcd030
broadcom/vc5: Stop lowering negates to subs.

In the case of fneg(0.0), we were getting back 0.0 instead of -0.0.  We
were also needing an immediate 0 value for ineg, when there's an opcode to
do the job properly.

Fixes fs-floatBitsToInt-neg.shader_test.
src/broadcom/compiler/nir_to_vir.c