[01/19] GBE: fix ctz fail.

Submitted by Yang, Rong R on Nov. 28, 2016, 11:32 a.m.

Details

Message ID 1480332765-3271-1-git-send-email-rong.r.yang@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 2 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Yang, Rong R Nov. 28, 2016, 11:32 a.m.
LZD require ud type.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
---
 backend/src/llvm/llvm_gen_backend.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/backend/src/llvm/llvm_gen_backend.cpp b/backend/src/llvm/llvm_gen_backend.cpp
index 397c721..dea031b 100644
--- a/backend/src/llvm/llvm_gen_backend.cpp
+++ b/backend/src/llvm/llvm_gen_backend.cpp
@@ -4628,7 +4628,7 @@  namespace gbe
               ir::Type revType = ir::TYPE_U32;
               ir::Register revTmp = ctx.reg(getFamily(revType));
               ctx.ALU1(ir::OP_BFREV, revType, revTmp, src);
-              ctx.ALU1(ir::OP_LZD, dstType, dst, revTmp);
+              ctx.ALU1(ir::OP_LZD, ir::TYPE_U32, dst, revTmp);
             }
           }
           break;