diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-07-12 00:29:05 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-07-12 00:29:05 +0000 |
commit | 681ae920834f4634e282ba5d80cfd06db1d05f44 (patch) | |
tree | 9abc4eda39791eef0ef8d90b5b1588c4fb7f8f13 /clang/test/Driver/cl-options.c | |
parent | 60755108391b515456f0f6cb4617e0a70a1f8ee1 (diff) | |
download | bcm5719-llvm-681ae920834f4634e282ba5d80cfd06db1d05f44.tar.gz bcm5719-llvm-681ae920834f4634e282ba5d80cfd06db1d05f44.zip |
clang-cl: Make all x86 CPU feature flags available, such as -msse3
Ideally, we would use the /arch cl.exe flag for this stuff.
Unfortunately, MSVC supports only 5 /arch flag values, which isn't
nearly enough to cover all the CPU features that LLVM cares about. At
the very least, we need to know about SSE3 and SSE4.1 in addition to
SSE, SSE2, AVX, and AVX2.
In the future we should add the relevant /arch mappings in addition to
these gcc-style -m flags.
llvm-svn: 212869
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 90b63259feb..bd77bddbf1f 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -285,8 +285,10 @@ // Xclang: "-cc1" // Xclang: "hellocc1" -// We support -m32 and -m64. -// RUN: %clang_cl /Zs /WX -m32 -m64 -### -- 2>&1 %s | FileCheck -check-prefix=MFLAGS %s +// We support -m32 and -m64. We support all x86 CPU feature flags in gcc's -m +// flag space. +// RUN: %clang_cl /Zs /WX -m32 -m64 -msse3 -msse4.1 -mavx -mno-avx \ +// RUN: -### -- 2>&1 %s | FileCheck -check-prefix=MFLAGS %s // MFLAGS-NOT: argument unused during compilation // RTTI is on by default. /GR- controls -fno-rtti-data. |