pan/bi: Add _MSCALE flag for FMA/ADD

So we can bias by exponents.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4615>
This commit is contained in:
Alyssa Rosenzweig 2020-04-14 16:13:53 -04:00
parent d3643cdd81
commit 4570c34fc7
2 changed files with 6 additions and 0 deletions

View file

@ -366,6 +366,9 @@ bi_print_instruction(bi_instruction *ins, FILE *fp)
else
fprintf(fp, "%s", bi_class_name(ins->type));
if ((ins->type == BI_ADD || ins->type == BI_FMA) && ins->op.mscale)
fprintf(fp, ".mscale");
if (ins->type == BI_MINMAX)
fprintf(fp, "%s", bi_minmax_mode_name(ins->minmax));
else if (ins->type == BI_LOAD_VAR)

View file

@ -275,6 +275,9 @@ typedef struct {
enum bi_table_op table;
enum bi_frexp_op frexp;
enum bi_cond compare;
/* For FMA/ADD, should we add a biased exponent? */
bool mscale;
} op;
/* Union for class-specific information */