mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
aco: print neg prettier for packed math
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27455>
This commit is contained in:
parent
767eb15ddc
commit
b59f5f9c85
1 changed files with 5 additions and 6 deletions
|
|
@ -816,8 +816,9 @@ aco_print_instr(enum amd_gfx_level gfx_level, const Instruction* instr, FILE* ou
|
|||
opsel = f2f32 & vop3p.opsel_lo;
|
||||
} else if (instr->isVOP3P()) {
|
||||
const VALU_instruction& vop3p = instr->valu();
|
||||
neg_lo = vop3p.neg_lo;
|
||||
neg_hi = vop3p.neg_hi;
|
||||
neg = vop3p.neg_lo & vop3p.neg_hi;
|
||||
neg_lo = vop3p.neg_lo & ~neg;
|
||||
neg_hi = vop3p.neg_hi & ~neg;
|
||||
opsel_lo = vop3p.opsel_lo;
|
||||
opsel_hi = vop3p.opsel_hi;
|
||||
} else if (instr->isVALU()) {
|
||||
|
|
@ -854,11 +855,9 @@ aco_print_instr(enum amd_gfx_level gfx_level, const Instruction* instr, FILE* ou
|
|||
if (opsel_lo[i] || !opsel_hi[i])
|
||||
fprintf(output, ".%c%c", opsel_lo[i] ? 'y' : 'x', opsel_hi[i] ? 'y' : 'x');
|
||||
|
||||
if (neg_lo[i] && neg_hi[i])
|
||||
fprintf(output, "*[-1,-1]");
|
||||
else if (neg_lo[i])
|
||||
if (neg_lo[i])
|
||||
fprintf(output, "*[-1,1]");
|
||||
else if (neg_hi[i])
|
||||
if (neg_hi[i])
|
||||
fprintf(output, "*[1,-1]");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue