[Beignet] [PATCH] Fix the bug of ulong mad sat
junyan.he at inbox.com
junyan.he at inbox.com
Sun Feb 8 23:52:15 PST 2015
From: Junyan He <junyan.he at linux.intel.com>
Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
backend/src/backend/gen8_context.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/backend/src/backend/gen8_context.cpp b/backend/src/backend/gen8_context.cpp
index aa870ea..4edfd81 100644
--- a/backend/src/backend/gen8_context.cpp
+++ b/backend/src/backend/gen8_context.cpp
@@ -308,6 +308,7 @@ namespace gbe
p->curr.noMask = 1;
p->curr.useFlag(flagReg.flag_nr(), flagReg.flag_subnr());
p->CMP(GEN_CONDITIONAL_NZ, dst_h, GenRegister::immud(0), tmp0);
+ p->curr.predicate = GEN_PREDICATE_NORMAL;
p->curr.noMask = 0;
p->MOV(dst_l, GenRegister::immuint64(0xFFFFFFFFFFFFFFFF));
p->pop();
@@ -317,6 +318,7 @@ namespace gbe
p->curr.noMask = 1;
p->curr.useFlag(flagReg.flag_nr(), flagReg.flag_subnr());
p->CMP(GEN_CONDITIONAL_L, dst_l, src2, tmp0);
+ p->curr.predicate = GEN_PREDICATE_NORMAL;
p->curr.noMask = 0;
p->MOV(dst_l, GenRegister::immuint64(0xFFFFFFFFFFFFFFFF));
p->pop();
--
1.9.1
More information about the Beignet
mailing list