diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2016-12-15 00:02:57 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2016-12-15 00:02:57 +0000 |
| commit | abedf7a0c0ae6331533e935ca0f17bab0530e083 (patch) | |
| tree | 4703d88b2bb73be5e8024c0efcee16bee6e24615 /clang/test | |
| parent | 400e7b7811162e729e4f687294f9d8229704c2e7 (diff) | |
| download | bcm5719-llvm-abedf7a0c0ae6331533e935ca0f17bab0530e083.tar.gz bcm5719-llvm-abedf7a0c0ae6331533e935ca0f17bab0530e083.zip | |
Use PIC relocation mode by default for PowerPC64 ELF
Most of the PowerPC64 code generation already creates PIC access. This
changes to a full PIC default, similar to what GCC is doing.
Overall, a monolithic clang binary shrinks by 600KB (about 1%). This can
be a slight regression for TLS access and will use the TOC more
aggressively instead of synthesizing immediates. It is expected to be
performance neutral.
Differential Revision: https://reviews.llvm.org/D26564
llvm-svn: 289744
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/ppc-abi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Driver/ppc-abi.c b/clang/test/Driver/ppc-abi.c index 958fd774166..cebc90d3f99 100644 --- a/clang/test/Driver/ppc-abi.c +++ b/clang/test/Driver/ppc-abi.c @@ -24,7 +24,10 @@ // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 \ // RUN: -mabi=altivec | FileCheck -check-prefix=CHECK-ELFv2 %s +// CHECK-ELFv1: "-mrelocation-model" "pic" "-pic-level" "2" // CHECK-ELFv1: "-target-abi" "elfv1" +// CHECK-ELFv1-QPX: "-mrelocation-model" "pic" "-pic-level" "2" // CHECK-ELFv1-QPX: "-target-abi" "elfv1-qpx" +// CHECK-ELFv2: "-mrelocation-model" "pic" "-pic-level" "2" // CHECK-ELFv2: "-target-abi" "elfv2" |

