Can't be a regular ADD since there's no negate modifier for integers
(it's a different opcode entirely).
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4139>
case BI_DISCARD: return "discard";
case BI_FMA: return "fma";
case BI_FREXP: return "frexp";
+ case BI_ISUB: return "isub";
case BI_LOAD: return "load";
case BI_LOAD_UNIFORM: return "load_uniform";
case BI_LOAD_ATTR: return "load_attr";
[BI_DISCARD] = BI_SCHED_HI_LATENCY,
[BI_FMA] = BI_ROUNDMODE | BI_SCHED_FMA,
[BI_FREXP] = BI_SCHED_ALL,
+ [BI_ISUB] = BI_GENERIC | BI_SCHED_ALL,
[BI_LOAD] = BI_SCHED_HI_LATENCY,
[BI_LOAD_UNIFORM] = BI_SCHED_HI_LATENCY,
[BI_LOAD_ATTR] = BI_SCHED_HI_LATENCY,
case nir_op_fadd:
case nir_op_fsub:
return BI_ADD;
+ case nir_op_isub:
+ return BI_ISUB;
case nir_op_i2i8:
case nir_op_i2i16:
BI_DISCARD,
BI_FMA,
BI_FREXP,
+ BI_ISUB,
BI_LOAD,
BI_LOAD_UNIFORM,
BI_LOAD_ATTR,