1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/Target/ARM/MCTargetDesc
Martin Storsjo bba254df79 [ARM] Clear the constant pool cache on explicit .ltorg directives
Multiple ldr pseudoinstructions with the same constant value will
reuse the same constant pool entry. However, if the constant pool
is explicitly flushed with a .ltorg directive, we should not try
to reference constants in the previous pool any longer, since they
may be out of range.

This fixes assembling hand-written assembler source which repeatedly
loads the same constant value, across a binary size larger than the
pc-relative fixup range for ldr instructions (4096 bytes). Such
assembler source already uses explicit .ltorg instructions to emit
constant pools with regular intervals. However if we try to reuse
constants emitted in earlier pools, they end up out of range.

This makes the output of the testcase match what binutils gas does
(prior to this patch, it would fail to assemble).

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

llvm-svn: 302416
2017-05-08 10:26:24 +00:00
..
ARMAddressingModes.h
ARMAsmBackend.cpp Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
ARMAsmBackend.h Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
ARMAsmBackendDarwin.h
ARMAsmBackendELF.h
ARMAsmBackendWinCOFF.h
ARMBaseInfo.h [ARM] Make RWPI use movw/movt when available 2017-02-07 13:07:12 +00:00
ARMELFObjectWriter.cpp Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
ARMELFStreamer.cpp [ARM] Fix handling of mapping symbols when changing sections 2017-04-20 10:18:13 +00:00
ARMFixupKinds.h
ARMMachObjectWriter.cpp
ARMMachORelocationInfo.cpp [ARM] Fix some Include What You Use warnings; other minor fixes (NFC). 2017-02-08 22:19:56 +00:00
ARMMCAsmInfo.cpp
ARMMCAsmInfo.h
ARMMCCodeEmitter.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-27 23:58:02 +00:00
ARMMCExpr.cpp
ARMMCExpr.h
ARMMCTargetDesc.cpp [ARM] Fix triple format in test branch disassemble test 2017-03-17 09:37:10 +00:00
ARMMCTargetDesc.h
ARMTargetStreamer.cpp [ARM] Clear the constant pool cache on explicit .ltorg directives 2017-05-08 10:26:24 +00:00
ARMUnwindOpAsm.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-31 00:56:17 +00:00
ARMUnwindOpAsm.h [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-31 00:56:17 +00:00
ARMWinCOFFObjectWriter.cpp [ARM] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-27 23:58:02 +00:00
ARMWinCOFFStreamer.cpp
CMakeLists.txt
LLVMBuild.txt