nvc0/ir/target: integer ADD doesn't support ABS modifier
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 28 Apr 2012 12:45:05 +0000 (14:45 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 29 Apr 2012 15:54:34 +0000 (17:54 +0200)
src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp

index 2aa20053c143dfb8cb56609b026be708a04cbf2a..93af23faac033250b0859d48eb61f7f04a1e99c1 100644 (file)
@@ -481,6 +481,8 @@ TargetNVC0::isModSupported(const Instruction *insn, int s, Modifier mod) const
       case OP_XOR:
          break;
       case OP_ADD:
+         if (mod.abs())
+            return false;
          if (insn->src(s ? 0 : 1).mod.neg())
             return false;
          break;