diff options
author | Jim Grosbach <grosbach@apple.com> | 2013-11-16 00:53:35 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2013-11-16 00:53:35 +0000 |
commit | 32ca73e33fcc7c75ea1c297755a300be3e9e5371 (patch) | |
tree | 2e0262a61507e2015880dbcfe6f9a6cb9ee269f2 /test/Driver/clang-translation.c | |
parent | 5f900e8f3f6f1aff13f4bfe6991864ccd0659537 (diff) | |
download | clang-32ca73e33fcc7c75ea1c297755a300be3e9e5371.tar.gz |
X86: Make specifying avx2 simpler on Darwin with '-arch'
Teach the '-arch' command line option to enable the compiler-friendly
features of core-avx2 CPUs on Darwin. Pass the information along in the
target triple like Darwin+ARM does.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/clang-translation.c')
-rw-r--r-- | test/Driver/clang-translation.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/clang-translation.c b/test/Driver/clang-translation.c index 100b7819a3..09303841c3 100644 --- a/test/Driver/clang-translation.c +++ b/test/Driver/clang-translation.c @@ -19,6 +19,10 @@ // RUN: FileCheck -check-prefix=CORE2 %s // CORE2: "-target-cpu" // CORE2: "core2" +// RUN: %clang -target x86_64h-apple-darwin -### -S %s -o %t.s 2>&1 | \ +// RUN: FileCheck -check-prefix=AVX2 %s +// AVX2: "-target-cpu" +// AVX2: "core-avx2" // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 2>&1 | \ // RUN: FileCheck -check-prefix=ARMV7_DEFAULT %s |