summaryrefslogtreecommitdiff
path: root/assembler
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-08-20 14:25:52 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2013-08-20 14:25:52 +0100
commit5959b8bb41fd852f44c4b81276fc451d896c2f05 (patch)
treed962c45cbd76d03e7e1bf601ac707c26006f92bb /assembler
parent5b791671adc798486bb85213984e8e11094d19e3 (diff)
assembler: Tune the error message for invalid send on gen6+
And be a bit more descriptive. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler')
-rw-r--r--assembler/gram.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/assembler/gram.y b/assembler/gram.y
index 9673eeb3..0fae9c80 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);