nv50/ir: add precise field to Instruction

v4: initialize field with NULL

Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
This commit is contained in:
Karol Herbst 2017-06-23 20:30:27 +02:00 committed by Ilia Mirkin
parent 4ad9e2e17a
commit 1d7c232fbd
2 changed files with 3 additions and 0 deletions

View file

@ -575,6 +575,7 @@ void Instruction::init()
encSize = 0;
ipa = 0;
mask = 0;
precise = 0;
lanes = 0xf;

View file

@ -884,6 +884,8 @@ public:
unsigned perPatch : 1;
unsigned exit : 1; // terminate program after insn
unsigned mask : 4; // for vector ops
// prevent algebraic optimisations that aren't bit-for-bit identical
unsigned precise : 1;
int8_t postFactor; // MUL/DIV(if < 0) by 1 << postFactor