nvc0/ir: fix comments about instructions info
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 13 Sep 2016 17:37:24 +0000 (19:37 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 17 Sep 2016 15:42:40 +0000 (17:42 +0200)
The comment for the commutative flags was wrong because OP_MUL is
before OP_MAD. While we are at it add missing opcodes, and fix
the comment about the short forms.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp

index f5981de2e010bff193bbf2d68a7f02cfc0d75116..f75e395265fe9bb30864c67cfdddd7cb36720df8 100644 (file)
@@ -156,13 +156,14 @@ void TargetNVC0::initOpInfo()
 
    static const uint32_t commutative[(OP_LAST + 31) / 32] =
    {
-      // ADD, MAD, MUL, AND, OR, XOR, MAX, MIN
+      // ADD, MUL, MAD, FMA, AND, OR, XOR, MAX, MIN, SET_AND, SET_OR, SET_XOR,
+      // SET, SELP, SLCT
       0x0670ca00, 0x0000003f, 0x00000000, 0x00000000
    };
 
    static const uint32_t shortForm[(OP_LAST + 31) / 32] =
    {
-      // ADD, MAD, MUL, AND, OR, XOR, PRESIN, PREEX2, SFN, CVT, PINTERP, MOV
+      // ADD, MUL, MAD, FMA, AND, OR, XOR, MAX, MIN
       0x0670ca00, 0x00000000, 0x00000000, 0x00000000
    };