intel/compiler: Lower 8-bit ops to 16-bit in NIR on all platforms

This fixes the Crucible func.shader.shift.int8_t test on Gen8 and Gen9.
See mesa/crucible!76.

With the previous optimizations in place, this change seems to improve
the quality of the generated code.  Comparing a couple Vulkan CTS tests
on Skylake had the following results.

dEQP-VK.spirv_assembly.type.vec3.i8.bitwise_xor_frag:
SIMD8 shader: 36 instructions. 1 loops. 3822 cycles. 0:0 spills:fills, 5 sends
SIMD8 shader: 27 instructions. 1 loops. 2742 cycles. 0:0 spills:fills, 5 sends

dEQP-VK.spirv_assembly.type.vec3.i8.max_frag:
SIMD8 shader: 39 instructions. 1 loops. 3922 cycles. 0:0 spills:fills, 5 sends
SIMD8 shader: 37 instructions. 1 loops. 3682 cycles. 0:0 spills:fills, 5 sends

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Status Job ID Name Coverage
  Container
manual #10896503
aarch64 manual
arm_build
manual #10896504
windows shell 1809 mesa manual
windows_build_vs2019
manual #10896501
manual
x86_build-base
manual #10896502
manual
x86_test-base
 
  Container 2
created #10896509
android_build
created #10896506
i386_build
created #10896512
kernel+rootfs_amd64
created #10896513
aarch64
kernel+rootfs_arm64
created #10896514
aarch64
kernel+rootfs_armhf
created #10896507
ppc64el_build
created #10896508
s390x_build
created #10896505
x86_build
created #10896510
x86_test-gl
created #10896511
x86_test-vk
 
  Meson X86 64
created #10896520
meson-clang
created #10896521
meson-clover
created #10896517
meson-clover-testing
created #10896518
meson-gallium
created #10896519
meson-release
created #10896515
meson-testing
created #10896516
meson-testing-asan
created #10896522
meson-vulkan
 
  Build Misc
created #10896523
arm_test
created #10896524
meson-android
created #10896526
aarch64
meson-arm64
created #10896527
aarch64
meson-arm64-asan
created #10896528
aarch64
meson-arm64-build-test
created #10896525
aarch64
meson-armhf
created #10896530
meson-i386
created #10896533
meson-mingw32-x86_64
created #10896532
meson-ppc64el
created #10896531
kvm
meson-s390x
created #10896529
windows docker 1809 mesa
meson-windows-vs2019
 
  Amd
created #10896542
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radeonsi-stoney-gles2:amd64
created #10896545
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radeonsi-stoney-gles31:amd64 1/2
created #10896546
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radeonsi-stoney-gles31:amd64 2/2
created #10896543
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radeonsi-stoney-gles3:amd64 1/2
created #10896544
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radeonsi-stoney-gles3:amd64 2/2
created #10896548
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radeonsi-stoney-piglit-gl:amd64
created #10896547
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radeonsi-stoney-traces:amd64
created #10896541
radv-fossils
created #10896535
amdgpu:codename:NAVY_FLOUNDER manual
radv-navy_flounder-traces
created #10896534
amdgpu:codename:NAVY_FLOUNDER manual
radv-navy_flounder-vkd3d-proton
created #10896537
polaris10 manual
radv_polaris10_vkcts
created #10896536
amdgpu:codename:RAVEN manual
radv-raven-traces
created #10896538
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radv_stoney_vkcts:amd64 1/3
created #10896539
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radv_stoney_vkcts:amd64 2/3
created #10896540
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
radv_stoney_vkcts:amd64 3/3
 
  Intel
created #10896549
anholt-g33 manual
i915-g33-deqp
created #10896550
anholt-g33 manual
i915-g33-khr-deqp
created #10896551
anholt-g33 manual
i915-g33-piglit
created #10896552
anholt-g33 manual
i915-g33-traces
created #10896567
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-egl
created #10896566
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-gl
created #10896563
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-gles2
created #10896564
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
iris-amly-gles3
created #10896565
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
iris-amly-gles31
created #10896568
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-piglit 1/3
created #10896569
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-piglit 2/3
created #10896570
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-piglit 3/3
created #10896573
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus
iris-amly-traces
created #10896557
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
iris-apl-egl
created #10896556
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral manual
iris-apl-gl
created #10896553
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
iris-apl-gles2
created #10896554
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
iris-apl-gles3
created #10896555
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
iris-apl-gles31
created #10896571
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
iris-apl-traces
created #10896562
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
iris-glk-egl
created #10896561
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
iris-glk-gl
created #10896558
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
iris-glk-gles2
created #10896559
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
iris-glk-gles3
created #10896560
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
iris-glk-gles31
created #10896572
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
iris-glk-traces
created #10896574
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
iris-kbl-traces
 
  Arm
created #10896584
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
panfrost-g52-gles31:arm64
created #10896582
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
panfrost-g52-gles3:arm64 1/2
created #10896583
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
panfrost-g52-gles3:arm64 2/2
created #10896575
mesa-ci-x86-64-lava-sun50i-h6-pine-h64
panfrost-t720-gles2:arm64
created #10896576
mesa-ci-x86-64-lava-rk3288-veyron-jaq
panfrost-t760-gles2:armhf
created #10896577
mesa-ci-x86-64-lava-rk3288-veyron-jaq
panfrost-t760-traces:armhf
created #10896580
mesa-ci-x86-64-lava-rk3399-gru-kevin
panfrost-t860-gles31:arm64
created #10896578
mesa-ci-x86-64-lava-rk3399-gru-kevin
panfrost-t860-gles3:arm64 1/2
created #10896579
mesa-ci-x86-64-lava-rk3399-gru-kevin
panfrost-t860-gles3:arm64 2/2
created #10896581
mesa-ci-x86-64-lava-rk3399-gru-kevin
panfrost-t860-traces:arm64
 
  Broadcom
created #10896607
igalia-rpi4
v3d-rpi4-egl:armhf
created #10896603
igalia-rpi4
v3d-rpi4-gles2:armhf
created #10896597
igalia-rpi4
v3d-rpi4-gles31:armhf 1/2
created #10896598
igalia-rpi4
v3d-rpi4-gles31:armhf 2/2
created #10896599
igalia-rpi4
v3d-rpi4-gles3:armhf 1/4
created #10896600
igalia-rpi4
v3d-rpi4-gles3:armhf 2/4
created #10896601
igalia-rpi4
v3d-rpi4-gles3:armhf 3/4
created #10896602
igalia-rpi4
v3d-rpi4-gles3:armhf 4/4
created #10896606
igalia-rpi4
v3d-rpi4-khr-gles2:armhf
created #10896604
igalia-rpi4
v3d-rpi4-khr-gles31:armhf
created #10896605
igalia-rpi4
v3d-rpi4-khr-gles3:armhf
created #10896608
igalia-rpi4
v3d-rpi4-piglit:armhf 1/3
created #10896609
igalia-rpi4
v3d-rpi4-piglit:armhf 2/3
created #10896610
igalia-rpi4
v3d-rpi4-piglit:armhf 3/3
created #10896611
igalia-rpi4
v3dv-rpi4-vk:arm64 1/6
created #10896612
igalia-rpi4
v3dv-rpi4-vk:arm64 2/6
created #10896613
igalia-rpi4
v3dv-rpi4-vk:arm64 3/6
created #10896614
igalia-rpi4
v3dv-rpi4-vk:arm64 4/6
created #10896615
igalia-rpi4
v3dv-rpi4-vk:arm64 5/6
created #10896616
igalia-rpi4
v3dv-rpi4-vk:arm64 6/6
created #10896590
igalia-rpi3
vc4-rpi3-egl:armhf
created #10896585
igalia-rpi3
vc4-rpi3-gles2:armhf 1/4
created #10896586
igalia-rpi3
vc4-rpi3-gles2:armhf 2/4
created #10896587
igalia-rpi3
vc4-rpi3-gles2:armhf 3/4
created #10896588
igalia-rpi3
vc4-rpi3-gles2:armhf 4/4
created #10896589
igalia-rpi3
vc4-rpi3-khr-gles2:armhf
created #10896591
igalia-rpi3 manual
vc4-rpi3-piglit-quick_gl:armhf 1/4
created #10896592
igalia-rpi3 manual
vc4-rpi3-piglit-quick_gl:armhf 2/4
created #10896593
igalia-rpi3 manual
vc4-rpi3-piglit-quick_gl:armhf 3/4
created #10896594
igalia-rpi3 manual
vc4-rpi3-piglit-quick_gl:armhf 4/4
created #10896595
igalia-rpi3 manual
vc4-rpi3-piglit-quick_shader:armhf 1/2
created #10896596
igalia-rpi3 manual
vc4-rpi3-piglit-quick_shader:armhf 2/2
 
  Freedreno
created #10896617
google-freedreno-db410c
a306_gles2
created #10896618
google-freedreno-db410c
a306_gles3 1/3
created #10896619
google-freedreno-db410c
a306_gles3 2/3
created #10896620
google-freedreno-db410c
a306_gles3 3/3
created #10896621
google-freedreno-db410c
a306_gles3_options
created #10896623
google-freedreno-db410c
a306-traces
created #10896626
google-freedreno-db820c
a530_gles2
created #10896631
google-freedreno-db820c
a530_gles31 1/2
created #10896628
google-freedreno-db820c
a530_gles3 1/2
created #10896633
google-freedreno-db820c
a530_gles31 2/2
created #10896629
google-freedreno-db820c
a530_gles3 2/2
created #10896636
google-freedreno-db820c manual
a530_piglit_gl
created #10896639
google-freedreno-db820c
a530_piglit_shader 1/2
created #10896641
google-freedreno-db820c
a530_piglit_shader 2/2
created #10896644
google-freedreno-db820c
a530-traces
created #10896661
google-freedreno-cheza
a630_egl
created #10896657
google-freedreno-cheza
a630_gl
created #10896646
google-freedreno-cheza
a630_gles2
created #10896653
google-freedreno-cheza
a630_gles3
created #10896649
google-freedreno-cheza
a630_gles31
created #10896668
google-freedreno-cheza manual
a630_gles_asan
created #10896664
google-freedreno-cheza
a630_gles_others
created #10896685
google-freedreno-cheza
a630_piglit
created #10896690
google-freedreno-cheza
a630-traces
created #10896672
google-freedreno-cheza
a630_vk 1/2
created #10896675
google-freedreno-cheza
a630_vk 2/2
created #10896678
google-freedreno-cheza manual
a630_vk_asan
created #10896682
google-freedreno-cheza
a630_vk_sysmem
 
  Software Renderer
created #10896747
lavapipe-nir-stress
created #10896744
lavapipe-vk
created #10896719
llvmpipe-egl
created #10896714
llvmpipe-gl
created #10896706
llvmpipe-gles2
created #10896709
llvmpipe-gles3
created #10896711
llvmpipe-gles31
created #10896716
llvmpipe-khr-gles2
created #10896693
llvmpipe-piglit-cl
created #10896698
llvmpipe-piglit-glslparser
created #10896695
llvmpipe-piglit-quick_gl
created #10896701
llvmpipe-piglit-quick_shader
created #10896703
llvmpipe-traces
created #10896738
softpipe-asan-gles31
created #10896742
softpipe-gl
created #10896722
softpipe-gles2
created #10896723
softpipe-gles3
created #10896726
softpipe-gles31 1/2
created #10896729
softpipe-gles31 2/2
created #10896730
softpipe-khr-gles2
created #10896733
softpipe-khr-gles3
created #10896735
softpipe-khr-gles31
created #10896740
softpipe-piglit-quick
 
  Layered Backends
created #10896789
windows docker 1809 mesa
test-d3d12-windows
created #10896760
virgl-gl30-on-gl
created #10896761
virgl-gl31-on-gl
created #10896764
virgl-gl32-on-gl
created #10896750
virgl-gles2-on-gl
created #10896766
manual
virgl-gles2-on-gles
created #10896754
virgl-gles31-on-gl 1/2
created #10896757
virgl-gles31-on-gl 2/2
created #10896770
manual
virgl-gles31-on-gles 1/2
created #10896773
manual
virgl-gles31-on-gles 2/2
created #10896753
virgl-gles3-on-gl
created #10896769
manual
virgl-gles3-on-gles
created #10896776
kvm
virgl-traces
created #10896786
zink-lvp-gl
created #10896782
zink-lvp-gles2
created #10896783
zink-lvp-gles3
created #10896779
zink-piglit-quick_gl
 
  Deploy
manual #10896794
manual
test-docs