[Intel-gfx] [PATCH 2/3] assembler: Set 3src options before sources
Kristian H. Kristensen
hoegsberg at gmail.com
Wed Nov 30 01:15:58 UTC 2016
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 at 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
More information about the Intel-gfx
mailing list