[AMDGPU] Keep consistent check of legal addressing mode.
authorMichael Liao <michael.hliao@gmail.com>
Tue, 19 Nov 2019 22:12:47 +0000 (17:12 -0500)
committerMichael Liao <michael.hliao@gmail.com>
Wed, 20 Nov 2019 20:08:17 +0000 (15:08 -0500)
commit4a308d302c3378258c5a9af231236de4d7ff741a
tree0498d872695f92533b4621c86b75d787eab7ac53
parentfd8d9155a997ab0f3ef3d7dff1c56efc9b692bfe
[AMDGPU] Keep consistent check of legal addressing mode.

Summary:
- Add test cases for GFX10, which has narrower offset range compared to
  GFX9.

Reviewers: rampitec, arsenm

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70473
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm-gfx10.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm.ll