nir: fix constant-folding of 64-bit fpow
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Sun, 30 Apr 2023 10:15:31 +0000 (12:15 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 2 May 2023 07:53:51 +0000 (07:53 +0000)
commit955797d01566bac49b9f49eadcd075f3cb7c5291
tree35260581b9cdb66d5fbd7338021d976226535ed7
parente25e4c81de800f659665d28f9670c41bb3e857dc
nir: fix constant-folding of 64-bit fpow

We need to do full pow if 64-bit, and we can do fpow() otherwise. Not
the other way around.

Fixes: 9076c4e289d ("nir: update opcode definitions for different bit sizes")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22774>
src/compiler/nir/nir_opcodes.py