Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4470>
bit_make_poly(add, a + b);
bit_make_float(fma, (a * b) + c);
bit_make_poly(mov, a);
+bit_make_poly(min, MIN2(a, b));
+bit_make_poly(max, MAX2(a, b));
/* Modifiers */
case BI_FREXP:
case BI_ISUB:
- case BI_MINMAX:
unreachable("Unsupported op");
+ case BI_MINMAX: {
+ if (ins->op.minmax == BI_MINMAX_MIN) {
+ bpoly(min);
+ } else {
+ bpoly(max);
+ }
+ }
+
case BI_MOV:
bpoly(mov);