2012-04-10 07:53:34 +08:00
|
|
|
// RUN: touch %t.o
|
2013-01-13 19:46:33 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux -### %t.o -flto 2>&1 \
|
2015-12-21 18:44:36 +08:00
|
|
|
// RUN: -Wl,-plugin-opt=foo -O3 \
|
2013-01-13 19:46:33 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-X86-64-BASIC
|
2017-08-23 05:05:01 +08:00
|
|
|
// CHECK-X86-64-BASIC: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
|
2015-12-21 18:44:36 +08:00
|
|
|
// CHECK-X86-64-BASIC: "-plugin-opt=O3"
|
2013-01-13 19:46:33 +08:00
|
|
|
// CHECK-X86-64-BASIC: "-plugin-opt=foo"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux -### %t.o -flto 2>&1 \
|
2015-12-21 18:44:36 +08:00
|
|
|
// RUN: -march=corei7 -Wl,-plugin-opt=foo -Ofast \
|
2013-01-13 19:46:33 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-X86-64-COREI7
|
2017-08-23 05:05:01 +08:00
|
|
|
// CHECK-X86-64-COREI7: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
|
2013-01-13 19:46:33 +08:00
|
|
|
// CHECK-X86-64-COREI7: "-plugin-opt=mcpu=corei7"
|
2015-12-21 18:44:36 +08:00
|
|
|
// CHECK-X86-64-COREI7: "-plugin-opt=O3"
|
2013-01-13 19:46:33 +08:00
|
|
|
// CHECK-X86-64-COREI7: "-plugin-opt=foo"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target arm-unknown-linux -### %t.o -flto 2>&1 \
|
2015-12-21 18:44:36 +08:00
|
|
|
// RUN: -march=armv7a -Wl,-plugin-opt=foo -O0 \
|
2013-01-13 19:46:33 +08:00
|
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-ARM-V7A
|
2017-08-23 05:05:01 +08:00
|
|
|
// CHECK-ARM-V7A: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
|
2017-06-01 15:31:50 +08:00
|
|
|
// CHECK-ARM-V7A: "-plugin-opt=mcpu=generic"
|
2015-12-21 18:44:36 +08:00
|
|
|
// CHECK-ARM-V7A: "-plugin-opt=O0"
|
2013-01-13 19:46:33 +08:00
|
|
|
// CHECK-ARM-V7A: "-plugin-opt=foo"
|
2014-04-29 18:25:20 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target i686-linux-android -### %t.o -flto 2>&1 \
|
|
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-X86-ANDROID
|
2017-08-23 05:05:01 +08:00
|
|
|
// CHECK-X86-ANDROID: "-plugin" "{{.*}}{{[/\\]}}LLVMgold.{{dll|dylib|so}}"
|