OSDN Git Service

AMDGPU: Use an ABS32_LO relocation for SCRATCH_RSRC_DWORD1
authorNicolai Haehnle <nhaehnle@gmail.com>
Wed, 19 Dec 2018 11:55:03 +0000 (11:55 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Wed, 19 Dec 2018 11:55:03 +0000 (11:55 +0000)
commitf835629b79c760a676c6337549132a48a214337a
treecbdc3bd46e2c0c58319eb425f721b63d9eea57f3
parent96c60eab748dda93a117660836dbc2e026af315d
AMDGPU: Use an ABS32_LO relocation for SCRATCH_RSRC_DWORD1

Summary:
Using HI here makes no logical sense, since the dword is only
32 bits to begin with.

Current Mesa master does not look at the relocation type at all,
so this change is fine. Future Mesa will rely on this, however.

Change-Id: I91085707834c4ac0370926602b93c94b90e44cb1

Reviewers: arsenm, rampitec, mareko

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

Differential Revision: https://reviews.llvm.org/D55369

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349620 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFObjectWriter.cpp
test/CodeGen/AMDGPU/scratch-simple.ll