[Beignet] [PATCH 6/7] GBE: the dst grf should use same width as source register

Ruiling Song ruiling.song at intel.com
Fri Apr 1 06:53:27 UTC 2016


When the source is double,the compare dst register should use QWORD.

Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
 backend/src/backend/gen_reg_allocation.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/backend/gen_reg_allocation.cpp b/backend/src/backend/gen_reg_allocation.cpp
index 8d07045..57e1709 100644
--- a/backend/src/backend/gen_reg_allocation.cpp
+++ b/backend/src/backend/gen_reg_allocation.cpp
@@ -657,7 +657,7 @@ namespace gbe
             bool isSrc = false;
             bool needMov = false;
             ir::Type ir_type = ir::TYPE_FLOAT;
-            if (insn.src(0).isint64())
+            if (insn.src(0).isint64() || insn.src(0).isdf())
               ir_type = ir::TYPE_U64;
             this->replaceReg(selection, &insn, 0, isSrc, ir_type, needMov);
           }
-- 
2.4.1



More information about the Beignet mailing list