The glsl lowering seems to be broken, but the nir lowering pass handles this correctly.
33362e0df52 r600: enable support for 64 bit DIVMOD when NIR is used
src/gallium/drivers/r600/r600_pipe.c | 5 +++++
1 file changed, 5 insertions(+)
Upstream: cgit.freedesktop.org