[Beignet] [PATCH 06/13] Backend: Fix a bug for double imm src setting.
junyan.he at inbox.com
junyan.he at inbox.com
Fri Sep 18 02:58:17 PDT 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_encoder.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/backend/gen8_encoder.cpp b/backend/src/backend/gen8_encoder.cpp
index 63126b1..a7c1fa9 100644
--- a/backend/src/backend/gen8_encoder.cpp
+++ b/backend/src/backend/gen8_encoder.cpp
@@ -372,7 +372,7 @@ namespace gbe
gen8_insn->bits2.da1.src0_negate = reg.negation;
gen8_insn->bits2.da1.src0_address_mode = reg.address_mode;
if (reg.file == GEN_IMMEDIATE_VALUE) {
- if (reg.type == GEN_TYPE_L || reg.type == GEN_TYPE_UL) {
+ if (reg.type == GEN_TYPE_L || reg.type == GEN_TYPE_UL || reg.type == GEN_TYPE_DF_IMM) {
gen8_insn->bits3.ud = (uint32_t)(reg.value.i64 >> 32);
gen8_insn->bits2.ud = (uint32_t)(reg.value.i64);
} else {
--
1.9.1
More information about the Beignet
mailing list