summaryrefslogtreecommitdiff
path: root/assembler
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-08-24 10:51:48 -0700
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:21 +0000
commit56b50b68032d181ae9f2bc75e8c606d2238266e7 (patch)
treef0b9665823795557fba81b7e7d1dd6f3e8d3ad34 /assembler
parent7c330fbf3aeb6ea488da87c1a399bf20bce37c93 (diff)
bzero instructions before filling in the bits we care about.
This avoids some set bits in padding fields.
Diffstat (limited to 'assembler')
-rw-r--r--assembler/gram.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/assembler/gram.y b/assembler/gram.y
index 6dc252eec..4bd7bfccd 100644
--- a/assembler/gram.y
+++ b/assembler/gram.y
@@ -142,6 +142,7 @@ unaryinstruction:
predicate unaryop conditionalmodifier saturate execsize
dst srcaccimm instoptions
{
+ bzero(&$$, sizeof($$));
$$.header.opcode = $2;
$$.header.destreg__conditionalmod = $3;
$$.header.saturate = $4;
@@ -159,6 +160,7 @@ binaryinstruction:
predicate binaryop conditionalmodifier saturate execsize
dst src srcimm instoptions
{
+ bzero(&$$, sizeof($$));
$$.header.opcode = $2;
$$.header.destreg__conditionalmod = $3;
$$.header.saturate = $4;
@@ -177,6 +179,7 @@ binaryaccinstruction:
predicate binaryaccop conditionalmodifier saturate execsize
dst srcacc srcimm instoptions
{
+ bzero(&$$, sizeof($$));
$$.header.opcode = $2;
$$.header.destreg__conditionalmod = $3;
$$.header.saturate = $4;
@@ -197,6 +200,7 @@ triinstruction: sendinstruction
sendinstruction: predicate SEND INTEGER execsize dst payload msgtarget
MSGLEN INTEGER RETURNLEN INTEGER instoptions
{
+ bzero(&$$, sizeof($$));
$$.header.opcode = BRW_OPCODE_SEND;
$$.header.execution_size = $4;
$$.header.destreg__conditionalmod = $3;
@@ -204,6 +208,7 @@ sendinstruction: predicate SEND INTEGER execsize dst payload msgtarget
specialinstruction: NOP
{
+ bzero(&$$, sizeof($$));
$$.header.opcode = BRW_OPCODE_NOP;
}