From 5959b8bb41fd852f44c4b81276fc451d896c2f05 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 20 Aug 2013 14:25:52 +0100 Subject: [PATCH] assembler: Tune the error message for invalid send on gen6+ And be a bit more descriptive. Signed-off-by: Damien Lespiau --- assembler/gram.y | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/assembler/gram.y b/assembler/gram.y index 9673eeb..0fae9c8 100644 --- a/assembler/gram.y +++ b/assembler/gram.y @@ -1170,7 +1170,7 @@ sendinstruction: predicate sendop execsize exp post_dst payload msgtarget | predicate sendop execsize dst sendleadreg payload directsrcoperand instoptions { if (IS_GENp(6)) - error(&@2, "the syntax of send instruction\n"); + error(&@2, "invalid syntax for send on gen6+\n"); memset(&$$, 0, sizeof($$)); set_instruction_opcode(&$$, $2); @@ -1191,7 +1191,7 @@ sendinstruction: predicate sendop execsize exp post_dst payload msgtarget | predicate sendop execsize dst sendleadreg payload imm32reg instoptions { if (IS_GENp(6)) - error(&@2, "the syntax of send instruction\n"); + error(&@2, "invalid syntax for send on gen6+\n"); if ($7.reg.type != BRW_REGISTER_TYPE_UD && $7.reg.type != BRW_REGISTER_TYPE_D && @@ -1217,7 +1217,7 @@ sendinstruction: predicate sendop execsize exp post_dst payload msgtarget struct src_operand src0; if (!IS_GENp(6)) - error(&@2, "the syntax of send instruction\n"); + error(&@2, "invalid syntax for send on gen6+\n"); if ($7.reg.type != BRW_REGISTER_TYPE_UD && $7.reg.type != BRW_REGISTER_TYPE_D && @@ -1258,7 +1258,7 @@ sendinstruction: predicate sendop execsize exp post_dst payload msgtarget struct src_operand src0; if (!IS_GENp(6)) - error(&@2, "the syntax of send instruction\n"); + error(&@2, "invalid syntax for send on gen6+\n"); if ($7.reg.file != BRW_ARCHITECTURE_REGISTER_FILE || ($7.reg.nr & 0xF0) != BRW_ARF_ADDRESS || @@ -1297,7 +1297,7 @@ sendinstruction: predicate sendop execsize exp post_dst payload msgtarget | predicate sendop execsize dst sendleadreg payload sndopr imm32reg instoptions { if (IS_GENp(6)) - error(&@2, "the syntax of send instruction\n"); + error(&@2, "invalid syntax for send on gen6+\n"); if ($8.reg.type != BRW_REGISTER_TYPE_UD && $8.reg.type != BRW_REGISTER_TYPE_D && @@ -1326,7 +1326,7 @@ sendinstruction: predicate sendop execsize exp post_dst payload msgtarget | predicate sendop execsize dst sendleadreg payload exp directsrcoperand instoptions { if (IS_GENp(6)) - error(&@2, "the syntax of send instruction\n"); + error(&@2, "invalid syntax for send on gen6+\n"); memset(&$$, 0, sizeof($$)); set_instruction_opcode(&$$, $2); -- 2.7.4