From: Sagar Ghuge Date: Wed, 5 Feb 2020 00:37:01 +0000 (-0800) Subject: intel/tools: Handle illegal instruction X-Git-Tag: upstream/20.1.8~3185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a75e603652ef8670c1b5433dc435b11ce9309a6;p=platform%2Fupstream%2Fmesa.git intel/tools: Handle illegal instruction Allow assembler to handle illegal instruction even though mesa doesn't use it but might be required at some point in future. Signed-off-by: Sagar Ghuge Reviewed-by: Matt Turner Part-of: --- diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y index ee2a144..0ac6d50 100644 --- a/src/intel/tools/i965_gram.y +++ b/src/intel/tools/i965_gram.y @@ -616,6 +616,7 @@ instruction: | syncinstruction | ternaryinstruction | sendinstruction + | illegalinstruction ; relocatableinstruction: @@ -625,6 +626,15 @@ relocatableinstruction: | loopinstruction ; +illegalinstruction: + ILLEGAL execsize instoptions + { + brw_next_insn(p, $1); + brw_inst_set_exec_size(p->devinfo, brw_last_inst, $2); + i965_asm_set_instruction_options(p, $3); + } + ; + /* Unary instruction */ unaryinstruction: predicate unaryopcodes saturate cond_mod execsize dst srcaccimm instoptions