diff options
Diffstat (limited to 'test/Driver/gold-lto.c')
-rw-r--r-- | test/Driver/gold-lto.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/test/Driver/gold-lto.c b/test/Driver/gold-lto.c index 05ac27a..c2e8bdf 100644 --- a/test/Driver/gold-lto.c +++ b/test/Driver/gold-lto.c @@ -1,6 +1,21 @@ // RUN: touch %t.o -// RUN: %clang -target x86_64-pc-linux-gnu -### %t.o -O4 -Wl,-plugin-opt=foo 2> %t.log -// RUN: FileCheck %s < %t.log - -// CHECK: "-plugin" "{{.*}}/LLVMgold.so" -// CHECK: "-plugin-opt=foo" +// +// RUN: %clang -target x86_64-unknown-linux -### %t.o -flto 2>&1 \ +// RUN: -Wl,-plugin-opt=foo \ +// RUN: | FileCheck %s --check-prefix=CHECK-X86-64-BASIC +// CHECK-X86-64-BASIC: "-plugin" "{{.*}}/LLVMgold.so" +// 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: | 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=foo" +// +// RUN: %clang -target arm-unknown-linux -### %t.o -flto 2>&1 \ +// RUN: -march=armv7a -Wl,-plugin-opt=foo \ +// 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=foo" |