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
|
|
|
|
// CHECK-X86-64-BASIC: "-plugin" "{{.*}}/LLVMgold.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
|
|
|
|
// CHECK-X86-64-COREI7: "-plugin" "{{.*}}/LLVMgold.so"
|
|
|
|
// 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
|
|
|
|
// CHECK-ARM-V7A: "-plugin" "{{.*}}/LLVMgold.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
|
|
|
|
// CHECK-X86-ANDROID: "-plugin" "{{.*}}/LLVMgold.so"
|