summaryrefslogtreecommitdiff
path: root/assembler
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-02-22 11:14:04 +0800
committerBen Widawsky <benjamin.widawsky@intel.com>2013-11-06 09:39:41 -0800
commit220f165008469c943959cd9ac4958432e4d24d64 (patch)
treed34a431f7ea8772117df1303d4a92e1da2dcaa75 /assembler
parent9cf8e1b79c9430171f3e627b298bf5e0f4f65c82 (diff)
assembler/bdw: Set math function
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'assembler')
-rw-r--r--assembler/gram.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/assembler/gram.y b/assembler/gram.y
index ae956a324..15df3aa0f 100644
--- a/assembler/gram.y
+++ b/assembler/gram.y
@@ -1419,7 +1419,12 @@ mathinstruction: predicate MATH_INST execsize dst src srcimm math_function insto
{
memset(&$$, 0, sizeof($$));
set_instruction_opcode(&$$, $2);
- GEN(&$$)->header.destreg__conditionalmod = $7;
+
+ if (IS_GENp(8))
+ gen8_set_math_function(GEN8(&$$), $7);
+ else
+ GEN(&$$)->header.destreg__conditionalmod = $7;
+
set_instruction_options(&$$, $8);
set_instruction_predicate(&$$, &$1);
$4.width = $3;