diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-06-03 13:22:28 -0700 |
---|---|---|
committer | Harald van Dijk <harald@gigawatt.nl> | 2020-12-02 22:20:36 +0000 |
commit | 18ce612353795da6838aade2b933503cbe3cf9b9 (patch) | |
tree | 3c89920f3ba1e601e6097f3d3bb3831906068d4d /llvm/unittests/CodeGen/MachineInstrTest.cpp | |
parent | 32c501dd88b62787d3a5ffda7aabcf4650dbe3cd (diff) | |
download | llvm-18ce612353795da6838aade2b933503cbe3cf9b9.zip llvm-18ce612353795da6838aade2b933503cbe3cf9b9.tar.gz llvm-18ce612353795da6838aade2b933503cbe3cf9b9.tar.bz2 |
Use PC-relative address for x32 TLS address
Since x32 supports PC-relative address, it shouldn't use EBX for TLS
address. Instead of checking N.getValueType(), we should check
Subtarget->is32Bit(). This fixes PR 22676.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D16474
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions