summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_for_ordered_messages.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2017-05-08 10:26:24 +0000
committerMartin Storsjo <martin@martin.st>2017-05-08 10:26:24 +0000
commitfd4c158a841613dfc3f2798bd4b8bb58a187cce7 (patch)
tree745fac809af95d8778d12479d237a1ef90e33238 /clang/test/OpenMP/parallel_for_ordered_messages.cpp
parent7a28a3ac786cbac5aae663b2ee5d43a3a8710777 (diff)
downloadbcm5719-llvm-fd4c158a841613dfc3f2798bd4b8bb58a187cce7.tar.gz
bcm5719-llvm-fd4c158a841613dfc3f2798bd4b8bb58a187cce7.zip
[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
Diffstat (limited to 'clang/test/OpenMP/parallel_for_ordered_messages.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud