diff --git a/src/intel/compiler/jay/jay_lower_pre_ra.c b/src/intel/compiler/jay/jay_lower_pre_ra.c index 28e828a3886..010edb97fad 100644 --- a/src/intel/compiler/jay/jay_lower_pre_ra.c +++ b/src/intel/compiler/jay/jay_lower_pre_ra.c @@ -150,9 +150,10 @@ lower_immediates(jay_builder *b, jay_inst *I, struct hash_table_u64 *constants) if (I->op == JAY_OPCODE_CMP && jay_is_zero(I->src[1]) && jay_is_null(I->dst) && - I->type == JAY_TYPE_U32) { + I->type == JAY_TYPE_U32 && + !I->predication) { - assert(!jay_is_null(I->cond_flag) && !I->predication); + assert(!jay_is_null(I->cond_flag)); I->op = JAY_OPCODE_MOV; jay_shrink_sources(I, 1); }