summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/gold-lto.c
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2015-12-21 10:44:36 +0000
committerJames Molloy <james.molloy@arm.com>2015-12-21 10:44:36 +0000
commitf97fdae4d0d0192db59531fd9948339153be27cb (patch)
tree11e46f263bb8950c1f462301aeda7b6297459773 /clang/test/Driver/gold-lto.c
parent0b8ed1d16259fa845fe708819069e068eef172e2 (diff)
downloadbcm5719-llvm-f97fdae4d0d0192db59531fd9948339153be27cb.tar.gz
bcm5719-llvm-f97fdae4d0d0192db59531fd9948339153be27cb.zip
[Driver] Pass -O* to the gold plugin via -plugin-opt
The gold plugin understands -O0..-O3, but these are not currently being passed to it. llvm-svn: 256146
Diffstat (limited to 'clang/test/Driver/gold-lto.c')
-rw-r--r--clang/test/Driver/gold-lto.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/test/Driver/gold-lto.c b/clang/test/Driver/gold-lto.c
index db6786ffd8b..050b1ef18be 100644
--- a/clang/test/Driver/gold-lto.c
+++ b/clang/test/Driver/gold-lto.c
@@ -1,23 +1,26 @@
// RUN: touch %t.o
//
// RUN: %clang -target x86_64-unknown-linux -### %t.o -flto 2>&1 \
-// RUN: -Wl,-plugin-opt=foo \
+// RUN: -Wl,-plugin-opt=foo -O3 \
// RUN: | FileCheck %s --check-prefix=CHECK-X86-64-BASIC
// CHECK-X86-64-BASIC: "-plugin" "{{.*}}/LLVMgold.so"
+// CHECK-X86-64-BASIC: "-plugin-opt=O3"
// CHECK-X86-64-BASIC: "-plugin-opt=foo"
//
// RUN: %clang -target x86_64-unknown-linux -### %t.o -flto 2>&1 \
-// RUN: -march=corei7 -Wl,-plugin-opt=foo \
+// RUN: -march=corei7 -Wl,-plugin-opt=foo -Ofast \
// RUN: | FileCheck %s --check-prefix=CHECK-X86-64-COREI7
// CHECK-X86-64-COREI7: "-plugin" "{{.*}}/LLVMgold.so"
// CHECK-X86-64-COREI7: "-plugin-opt=mcpu=corei7"
+// CHECK-X86-64-COREI7: "-plugin-opt=O3"
// CHECK-X86-64-COREI7: "-plugin-opt=foo"
//
// RUN: %clang -target arm-unknown-linux -### %t.o -flto 2>&1 \
-// RUN: -march=armv7a -Wl,-plugin-opt=foo \
+// RUN: -march=armv7a -Wl,-plugin-opt=foo -O0 \
// RUN: | FileCheck %s --check-prefix=CHECK-ARM-V7A
// CHECK-ARM-V7A: "-plugin" "{{.*}}/LLVMgold.so"
// CHECK-ARM-V7A: "-plugin-opt=mcpu=cortex-a8"
+// CHECK-ARM-V7A: "-plugin-opt=O0"
// CHECK-ARM-V7A: "-plugin-opt=foo"
//
// RUN: %clang -target i686-linux-android -### %t.o -flto 2>&1 \
OpenPOWER on IntegriCloud