[Beignet] [PATCH] Fix type assert error generated by lstPartSum incorrect type

Grigore Lupescu grigore.lupescu at intel.com
Wed Feb 3 04:00:21 PST 2016


Signed-off-by: Grigore Lupescu <grigore.lupescu at intel.com>
---
 backend/src/backend/gen_insn_selection.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
index 5eccfc6..0b9fe45 100644
--- a/backend/src/backend/gen_insn_selection.cpp
+++ b/backend/src/backend/gen_insn_selection.cpp
@@ -6241,10 +6241,10 @@ extern bool OCL_DEBUGINFO; // first defined by calling BVAR in program.cpp
         GenRegister result = sel.selReg(sel.reg(FAMILY_WORD), type);
 
         vector<GenRegister> lstPartSum;
-        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), ir::TYPE_U32));
-        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), ir::TYPE_U32));
-        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), ir::TYPE_U32));
-        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), ir::TYPE_U32));
+        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
+        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
+        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
+        lstPartSum.push_back(sel.selReg(sel.reg(FAMILY_DWORD), type));
         vector<GenRegister> fakeTemps;
         fakeTemps.push_back(sel.selReg(sel.reg(FAMILY_WORD), type));
         fakeTemps.push_back(sel.selReg(sel.reg(FAMILY_WORD), type));
-- 
2.5.0



More information about the Beignet mailing list