nir: fix compiler warnings about implicit conversions

Instead of implicitly converting UINT64_MAX to operation destination
type, we explicitly set the correct max depending on type.

So instead of generating:

   uint8_t dst = (src0 + src1) < src0 ? (UINT64_MAX) : (src0 + src1);

we do:

   uint8_t dst = (src0 + src1) < src0 ? (UINT8_MAX) : (src0 + src1);

This clears following warnings during compilation:

  warning: implicit conversion from 'unsigned long' to 'uint1_t'
  warning: implicit conversion from 'unsigned long' to 'uint8_t'
  warning: implicit conversion from 'unsigned long' to 'uint16_t'
  warning: implicit conversion from 'unsigned long' to 'uint32_t'

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
15 jobs for !570 with fix-implicit-cast-warnings in 10 minutes and 33 seconds (queued for 4 seconds)
latest detached
Status Job ID Name Coverage
  Containers Build
passed #212863
ubuntu

00:00:24

 
  Build+Test
passed #212864
autotools

00:10:05

passed #212866
meson-clang

00:08:36

passed #212872
meson-gallium-clover-llvm

00:07:12

passed #212873
meson-gallium-clover-llvm39

00:03:22

passed #212871
meson-gallium-drivers-other

00:04:57

passed #212870
meson-gallium-radeonsi

00:04:57

passed #212874
meson-gallium-st-other

00:01:59

passed #212865
meson-gallium-swr

00:07:43

passed #212869
meson-glvnd

00:06:33

passed #212868
meson-loader-classic-dri

00:06:03

passed #212867
meson-vulkan

00:02:03

passed #212876
scons-llvm

00:03:08

passed #212875
scons-nollvm

00:02:26

passed #212877
scons-swr

00:05:20