You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
// RUN: touch %t.o
|
|
//
|
|
// RUN: %clang -target x86_64-unknown-linux -### %t.o -flto 2>&1 \
|
|
// 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 -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 -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 \
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-X86-ANDROID
|
|
// CHECK-X86-ANDROID: "-plugin" "{{.*}}/LLVMgold.so"
|