intel/tools/i965_asm: Allow neg and abs modifiers on accumulator register

Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25657>
This commit is contained in:
Sviatoslav Peleshko
2023-10-11 12:57:09 +03:00
committed by Marge Bot
parent 98665e024f
commit f96e08f34d
+7 -5
View File
@@ -1761,12 +1761,14 @@ srcimm:
directsrcaccoperand:
directsrcoperand
| accreg region reg_type
| negate abs accreg region reg_type
{
$$ = set_direct_src_operand(&$1, $3);
$$.vstride = $2.vstride;
$$.width = $2.width;
$$.hstride = $2.hstride;
$$ = set_direct_src_operand(&$3, $5);
$$.negate = $1;
$$.abs = $2;
$$.vstride = $4.vstride;
$$.width = $4.width;
$$.hstride = $4.hstride;
}
;