ac/nir_to_llvm: add frexp support
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 20 Mar 2018 02:07:22 +0000 (13:07 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 22 Mar 2018 01:42:34 +0000 (12:42 +1100)
commitc135316555ccd052da544e79166f81dece55cebb
treeaf2a52f41e2f9737a81e98ab41f4892058741bfe
parentcca214174549af3d608e252d8642c2e194c910ed
ac/nir_to_llvm: add frexp support

Fixes CTS tests:
KHR-GL40.gpu_shader_fp64.builtin.frexp_double
KHR-GL40.gpu_shader_fp64.builtin.frexp_dvec2
KHR-GL40.gpu_shader_fp64.builtin.frexp_dvec3
KHR-GL40.gpu_shader_fp64.builtin.frexp_dvec4

And piglit test:
tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/fs-frexp-dvec4.shader_test

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c