[Beignet] [PATCH 1/8] Backend: Fix the bug for double imm reg.
junyan.he at inbox.com
junyan.he at inbox.com
Tue Sep 15 04:15:20 PDT 2015
From: Junyan He <junyan.he at linux.intel.com>
The imm type has different type encoding from
the ordinary src register.
Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
backend/src/backend/gen_register.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
1.9.1
More information about the Beignet
mailing list