Please help review this version, I just rebased to latest ocl2.0 branch. You can skip previous version of these patches.
Thanks! Ruiling > -----Original Message----- > From: Song, Ruiling > Sent: Friday, April 1, 2016 2:53 PM > To: beignet@lists.freedesktop.org > Cc: Song, Ruiling <ruiling.s...@intel.com> > Subject: [PATCH 1/7] GBE: Fix type mismatch bug. > > the move instruction should have same type src & dst. > > Signed-off-by: Ruiling Song <ruiling.s...@intel.com> > --- > backend/src/llvm/llvm_gen_backend.cpp | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/backend/src/llvm/llvm_gen_backend.cpp > b/backend/src/llvm/llvm_gen_backend.cpp > index 06d6760..a746d80 100644 > --- a/backend/src/llvm/llvm_gen_backend.cpp > +++ b/backend/src/llvm/llvm_gen_backend.cpp > @@ -4309,7 +4309,8 @@ namespace gbe > const ir::Register dst = this->getRegister(&I); > uint32_t stackSize = ctx.getFunction().getStackSize(); > if (stackSize == 0) { > - ctx.MOV(ir::TYPE_BOOL, dst, ir::ocl::zero); > + ir::ImmediateIndex imm = ctx.newImmediate((bool)0); > + ctx.LOADI(ir::TYPE_BOOL, dst, imm); > } else { > ir::Register cmp0 = ctx.reg(ir::FAMILY_BOOL); > ir::Register cmp1 = ctx.reg(ir::FAMILY_BOOL); > -- > 2.4.1 _______________________________________________ Beignet mailing list Beignet@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/beignet