[Beignet] [PATCH] fix GPU data type for 16-bit moving
Homer Hsing
homer.xing at intel.com
Tue Sep 3 18:18:20 PDT 2013
Signed-off-by: Homer Hsing <homer.xing at intel.com>
---
backend/src/backend/gen_insn_selection.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
index b417024..3176a2a 100644
--- a/backend/src/backend/gen_insn_selection.cpp
+++ b/backend/src/backend/gen_insn_selection.cpp
@@ -1391,6 +1391,8 @@ namespace gbe
return insnType;
if (opcode == ir::OP_FBH || opcode == ir::OP_FBL)
return ir::TYPE_U32;
+ if (insnType == ir::TYPE_S16 || insnType == ir::TYPE_U16)
+ return insnType;
return ir::TYPE_FLOAT;
}
--
1.8.1.2
More information about the Beignet
mailing list