nir: add 16 and 64 bit fisnormal lowering
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16206>
This commit is contained in:
parent
081ac73162
commit
a2c9e1cb50
|
@ -2419,7 +2419,9 @@ for op in ['ineg', 'iabs', 'inot', 'isign']:
|
|||
]
|
||||
|
||||
optimizations.extend([
|
||||
(('fisnormal', 'a@32'), ('ult', 0x1ffffff, ('iadd', ('ishl', a, 1), 0x1000000)), 'options->lower_fisnormal')
|
||||
(('fisnormal', 'a@16'), ('ult', 0xfff, ('iadd', ('ishl', a, 1), 0x800)), 'options->lower_fisnormal'),
|
||||
(('fisnormal', 'a@32'), ('ult', 0x1ffffff, ('iadd', ('ishl', a, 1), 0x1000000)), 'options->lower_fisnormal'),
|
||||
(('fisnormal', 'a@64'), ('ult', 0x3fffffffffffff, ('iadd', ('ishl', a, 1), 0x20000000000000)), 'options->lower_fisnormal')
|
||||
])
|
||||
|
||||
# This section contains optimizations to propagate downsizing conversions of
|
||||
|
|
Loading…
Reference in New Issue