floor and sign have only one source, so we need to print acc ops
even if src1 is unused.
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4110>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4110>
bool printed = false;
const acc_op_info op = acc_op_infos[instr->acc_op];
- if (instr->acc0_src0 != gpir_codegen_src_unused &&
- instr->acc0_src1 != gpir_codegen_src_unused) {
+ if (instr->acc0_src0 != gpir_codegen_src_unused) {
printed = true;
printf("\t");
acc_op_info acc0_op = op;
printf("\n");
}
- if (instr->acc1_src0 != gpir_codegen_src_unused &&
- instr->acc1_src1 != gpir_codegen_src_unused) {
+ if (instr->acc1_src0 != gpir_codegen_src_unused) {
printed = true;
printf("\t");
acc_op_info acc1_op = op;