aco: optimizer fixes with 16-bit<->32-bit integer casts
Since label_mul
, label_neg
, label_abs
, label_clamp
and label_omod
are used for both 16-bit and 32-bit operations, our optimizer can incorrectly combine 16-bit and 32-bit arithmetic.
I doubt this kind of stuff will ever happen in any application, but it's an actual bug I guess and not that difficult to fix.
First two commits are from !14769 (merged)