summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2015-12-10 22:22:08 -0500
committerYang Rong <rong.r.yang@intel.com>2015-12-14 16:56:49 +0800
commitb7d69e777c26a8b17e6fcecc22ff9fa4f37b1e6b (patch)
treecc3e5dbe3bf5161ec64d6da9bdf97df35f193bff
parent0b1e6e2faffbc636801464c57be0969ac5cd91ee (diff)
fix workgroup_broadcast instruction debug mode assert.
the workgoup related parameter of the workgroup_broadcast function is FAMILY_QWORD. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--backend/src/ir/instruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp
index 85db579e..bb5aac58 100644
--- a/backend/src/ir/instruction.cpp
+++ b/backend/src/ir/instruction.cpp
@@ -1457,7 +1457,7 @@ namespace ir {
whyNot = "Wrong number of source.";
return false;
} else {
- const RegisterFamily fam = FAMILY_DWORD;
+ const RegisterFamily fam = fn.getPointerFamily();
for (uint32_t srcID = 1; srcID < this->srcNum; ++srcID) {
const Register regID = fn.getRegister(src, srcID);
if (UNLIKELY(checkRegisterData(fam, regID, fn, whyNot) == false))