AMDGPU/GlobalISel: Legalize 64-bit G_SDIV/G_SREM
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 17 Jun 2020 01:38:29 +0000 (21:38 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 24 Jun 2020 15:39:45 +0000 (11:39 -0400)
commita44867075201b6aa3355f63445d81d66ef9daa50
tree9b78d352c16ca9a822b1d5dcce6a754f14c0df1c
parentb5c4e6c148464bd327b02ed5d0e267eb93455c19
AMDGPU/GlobalISel: Legalize 64-bit G_SDIV/G_SREM

Now all the divisions should be complete, although we should fix
emitting the entire common part for div/rem when you use both.
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sdiv.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-srem.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll [new file with mode: 0644]