When the source is double,the compare dst register should use QWORD. Signed-off-by: Ruiling Song <ruiling.s...@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 _______________________________________________ Beignet mailing list Beignet@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/beignet