From: Zhigang Gong Date: Mon, 2 Sep 2013 04:48:04 +0000 (+0800) Subject: GBE: null register could be used as src1. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69f1e7e7b670c2fd3821d586bedcd9dfec98cfe8;p=contrib%2Fbeignet.git GBE: null register could be used as src1. We should not assert if null register is used as src1. Signed-off-by: Zhigang Gong --- diff --git a/backend/src/backend/gen_encoder.cpp b/backend/src/backend/gen_encoder.cpp index cde7b48..a3d576e 100644 --- a/backend/src/backend/gen_encoder.cpp +++ b/backend/src/backend/gen_encoder.cpp @@ -315,7 +315,7 @@ namespace gbe void GenEncoder::setSrc1(GenInstruction *insn, GenRegister reg) { assert(reg.nr < 128); - assert(reg.file != GEN_ARCHITECTURE_REGISTER_FILE); + assert(reg.file != GEN_ARCHITECTURE_REGISTER_FILE || reg.nr == 0); insn->bits1.da1.src1_reg_file = reg.file; insn->bits1.da1.src1_reg_type = reg.type;