Setting the 3src sources will assert align16, but that doesn't get set
until we call set_instruction_options(). Call that before setting
sources.

Signed-off-by: Kristian H. Kristensen <hoegsb...@gmail.com>
---
 assembler/gram.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assembler/gram.y b/assembler/gram.y
index 15b8b64..f370dfa 100644
--- a/assembler/gram.y
+++ b/assembler/gram.y
@@ -1133,6 +1133,7 @@ trinaryinstruction:
 
                  set_instruction_opcode(&$$, $2);
                  set_instruction_saturate(&$$, $4);
+                 set_instruction_options(&$$, $10);
 
                  $6.width = $5;
                  if (set_instruction_dest_three_src(&$$, &$6))
@@ -1143,7 +1144,6 @@ trinaryinstruction:
                    YYERROR;
                  if (set_instruction_src2_three_src(&$$, &$9))
                    YYERROR;
-                 set_instruction_options(&$$, $10);
 }
 ;
 
-- 
2.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to