Mesa (master): intel/tools: Handle illegal instruction

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 25 22:49:22 UTC 2020


Module: Mesa
Branch: master
Commit: 2a75e603652ef8670c1b5433dc435b11ce9309a6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a75e603652ef8670c1b5433dc435b11ce9309a6

Author: Sagar Ghuge <sagar.ghuge at intel.com>
Date:   Tue Feb  4 16:37:01 2020 -0800

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 <sagar.ghuge at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3952>

---

 src/intel/tools/i965_gram.y | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/intel/tools/i965_gram.y b/src/intel/tools/i965_gram.y
index ee2a1446694..0ac6d50c16a 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



More information about the mesa-commit mailing list