gallivm/nir: copy compare ordering code from tgsi

This fixes some isinf/isnan tests copying what the tgsi code
paths do for float compares

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
42 jobs for !2933 with llvmpipe-nir-fixes in 15 minutes and 32 seconds (queued for 4 seconds)
detached
Status Job ID Name Coverage
  Container
passed #1125071
aarch64
arm_build

00:00:25

passed #1125072
aarch64
arm_test

00:00:17

passed #1125067
lava_arm64

00:00:21

passed #1125066
lava_armhf

00:00:19

passed #1125068
x86_build

00:00:18

passed #1125070
x86_build_old

00:00:17

passed #1125069
x86_test-gl

00:00:21

 
  Build
passed #1125074
lava-build:arm64

00:04:47

passed #1125073
lava-build:armhf

00:04:47

passed #1125078
aarch64
meson-arm64

00:03:08

passed #1125077
aarch64
meson-armhf

00:03:12

passed #1125079
meson-clang

00:06:25

passed #1125082
meson-clover

00:05:29

passed #1125083
meson-clover-old-llvm

00:06:58

passed #1125085
meson-i386

00:01:09

passed #1125076
meson-main

00:08:00

passed #1125086
meson-mingw32-x86_64

00:05:18

passed #1125075
meson-testing

00:06:14

passed #1125084
meson-vulkan

00:04:07

passed #1125087
scons

00:04:34

passed #1125088
scons-old-llvm

00:05:04

passed #1125080
scons-swr

00:04:59

passed #1125081
scons-win64

00:06:49

 
  Test
passed #1125107
db410c
arm64_a306_gles2

00:05:07

passed #1125104
mesa-cheza
arm64_a630_gles2

00:01:38

passed #1125106
mesa-cheza
arm64_a630_gles3

00:06:22

passed #1125105
mesa-cheza
arm64_a630_gles31

00:04:02

passed #1125089
lava-sun50i-h6-pine-h64
panfrost-t720-test:arm64

00:07:47

passed #1125090
lava-rk3288-veyron-jaq
panfrost-t760-test:armhf

00:04:58

passed #1125092
lava-meson-gxm-khadas-vim2
panfrost-t820-test:arm64

00:04:52

passed #1125091
lava-rk3399-gru-kevin
panfrost-t860-test:arm64

00:04:36

passed #1125094
piglit-glslparser

00:02:47

passed #1125093
piglit-quick_gl

00:08:58

passed #1125095
piglit-quick_shader

00:07:42

passed #1125096
test-llvmpipe-gles2

00:05:58

passed #1125097
test-softpipe-gles2

00:03:08

passed #1125100
test-softpipe-gles31 1/4

00:05:09

passed #1125098
test-softpipe-gles3 1/2

00:07:27

passed #1125101
test-softpipe-gles31 2/4

00:03:05

passed #1125102
test-softpipe-gles31 3/4

00:03:39

passed #1125103
test-softpipe-gles31 4/4

00:03:16

passed #1125099
test-softpipe-gles3 2/2

00:05:17