nv50/ir: handle NEG,ABS modifiers for short RCP encoding

This commit is contained in:
Christoph Bumiller 2012-06-14 23:24:36 +02:00
parent f677954e07
commit ef51ce522b

View file

@ -1239,6 +1239,8 @@ CodeEmitterNV50::emitSFnOp(const Instruction *i, uint8_t subOp)
if (i->encSize == 4) {
assert(i->op == OP_RCP);
code[0] |= i->src(0).mod.abs() << 15;
code[0] |= i->src(0).mod.neg() << 22;
emitForm_MUL(i);
} else {
code[1] = subOp << 29;