[01/13] Backend: Fix the bug for double imm reg.

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

Details

Message ID 1442570304-5754-2-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>

The imm type has different type encoding from
the ordinary src register.

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

Patch hide | download patch | download mbox

diff --git a/backend/src/backend/gen_register.hpp b/backend/src/backend/gen_register.hpp
index 4f37e30..69d156f 100644
--- a/backend/src/backend/gen_register.hpp
+++ b/backend/src/backend/gen_register.hpp
@@ -608,7 +608,7 @@  namespace gbe
     }
 
     static INLINE GenRegister immdf(double df) {
-      GenRegister immediate = imm(GEN_TYPE_DF);
+      GenRegister immediate = imm(GEN_TYPE_DF_IMM);
       immediate.value.df = df;
       return immediate;
     }