From 220f165008469c943959cd9ac4958432e4d24d64 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Fri, 22 Feb 2013 11:14:04 +0800 Subject: assembler/bdw: Set math function Signed-off-by: Xiang, Haihao Signed-off-by: Ben Widawsky --- assembler/gram.y | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'assembler') 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; -- cgit v1.2.3