break;
case nir_op_bitfield_reverse:
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
bld.BFREV(result, op[0]);
break;
case nir_op_bit_count:
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) < 64);
bld.CBIT(result, op[0]);
break;
case nir_op_ufind_msb: {
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
emit_find_msb_using_lzd(bld, result, op[0]);
break;
}
case nir_op_uclz:
assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
bld.LZD(retype(result, BRW_REGISTER_TYPE_UD), op[0]);
break;
case nir_op_ifind_msb: {
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
assert(devinfo->ver >= 7);
bld.FBH(retype(result, BRW_REGISTER_TYPE_UD), op[0]);
}
case nir_op_find_lsb:
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
assert(devinfo->ver >= 7);
bld.FBL(result, op[0]);
break;
break;
case nir_op_bitfield_reverse:
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
emit(BFREV(dst, op[0]));
break;
case nir_op_bit_count:
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) < 64);
emit(CBIT(dst, op[0]));
break;
break;
case nir_op_ifind_msb: {
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
assert(devinfo->ver >= 7);
vec4_builder bld = vec4_builder(this).at_end();
}
case nir_op_find_lsb:
- assert(nir_dest_bit_size(instr->dest.dest) < 64);
+ assert(nir_dest_bit_size(instr->dest.dest) == 32);
+ assert(nir_src_bit_size(instr->src[0].src) == 32);
assert(devinfo->ver >= 7);
emit(FBL(dst, op[0]));
break;