[06/13] Backend: Fix a bug for double imm src setting.

Submitted by junyan.he@inbox.com on Sept. 18, 2015, 9:58 a.m.

Details

Message ID 1442570304-5754-7-git-send-email-junyan.he@inbox.com
State New
Headers show

Not browsing as part of any series.

Commit Message

junyan.he@inbox.com Sept. 18, 2015, 9:58 a.m.
From: Junyan He <junyan.he@linux.intel.com>

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
---
 backend/src/backend/gen8_encoder.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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 {