[Beignet] [PATCH] backend: refine sel instruction
rander.wang
rander.wang at intel.com
Tue Apr 18 08:53:34 UTC 2017
double, long , ulong are not supported by sel instruction with conditional modifier,
or it outputs random data
Signed-off-by: rander.wang <rander.wang at intel.com>
---
backend/src/backend/gen_insn_selection.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
index 22b0ddc..822357e 100644
--- a/backend/src/backend/gen_insn_selection.cpp
+++ b/backend/src/backend/gen_insn_selection.cpp
@@ -3757,7 +3757,7 @@ extern bool OCL_DEBUGINFO; // first defined by calling BVAR in program.cpp
SelectionDAG *cmp = dag.child[0];
const SelectInstruction &insn = cast<SelectInstruction>(dag.insn);
- if (insn.getType() == TYPE_S64 || insn.getType() == TYPE_U64) // not support
+ if (getFamily(insn.getType()) == FAMILY_QWORD) // not support
return false;
// Not in this block
--
2.7.4
More information about the Beignet
mailing list