Fix translation of saturate value, and wire conditionalmod to 0 for now.
authorEric Anholt <eric@anholt.net>
Tue, 22 Aug 2006 21:46:39 +0000 (14:46 -0700)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:21 +0000 (15:54 +0000)
assembler/gram.y

index 0ac75c1..f956720 100644 (file)
@@ -143,8 +143,8 @@ unaryinstruction:
                dst srcaccimm instoptions
                {
                  $$.header.opcode = $2;
-                 $$.header.saturate = $3;
-                 $$.header.destreg__conditionalmod = $4;
+                 $$.header.destreg__conditionalmod = $3;
+                 $$.header.saturate = $4;
                  $$.header.execution_size = $5;
                  set_instruction_dest(&$$, &$6);
                  set_instruction_src0(&$$, &$7);
@@ -160,8 +160,8 @@ binaryinstruction:
                dst src srcimm instoptions
                {
                  $$.header.opcode = $2;
-                 $$.header.saturate = $3;
-                 $$.header.destreg__conditionalmod = $4;
+                 $$.header.destreg__conditionalmod = $3;
+                 $$.header.saturate = $4;
                  $$.header.execution_size = $5;
                  set_instruction_dest(&$$, &$6);
                  set_instruction_src0(&$$, &$7);
@@ -178,8 +178,8 @@ binaryaccinstruction:
                dst srcacc srcimm instoptions
                {
                  $$.header.opcode = $2;
-                 $$.header.saturate = $3;
-                 $$.header.destreg__conditionalmod = $4;
+                 $$.header.destreg__conditionalmod = $3;
+                 $$.header.saturate = $4;
                  $$.header.execution_size = $5;
                  set_instruction_dest(&$$, &$6);
                  set_instruction_src0(&$$, &$7);
@@ -477,7 +477,7 @@ saturate:   /* empty */ { $$ = BRW_INSTRUCTION_NORMAL; }
                | DOT SATURATE { $$ = BRW_INSTRUCTION_SATURATE; }
 ;
 
-conditionalmodifier:
+conditionalmodifier: { $$ = 0; }
 ;
 
 /* 1.4.13: Instruction options */