AMDGPU/GlobalISel: Fix asserts on non-s32 sitofp/uitofp sources
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 12 Jun 2020 14:19:17 +0000 (10:19 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 23 Jun 2020 14:00:35 +0000 (10:00 -0400)
commitdb777eaea3a7bfd6c02a3f8d5e5a42bd90943690
tree2048fe813775680cd3af3ea509e74054890bd84b
parent8ca7d2a1ee96d6b17ef743f3578618f4fd9781e9
AMDGPU/GlobalISel: Fix asserts on non-s32 sitofp/uitofp sources

The combine to form cvt_f32_ubyte0 was assuming the source type was
always 32-bit, but this needs to tolerate any legal source type.
llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-itofp.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll