diff mbox

[2/3] assembler: Set 3src options before sources

Message ID 20161130011559.19838-2-hoegsberg@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kristian Høgsberg Nov. 30, 2016, 1:15 a.m. UTC
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 <hoegsberg@gmail.com>
---
 assembler/gram.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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);
 }
 ;