summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-x86-flags.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't let test write to the source dir after r323426.Nico Weber2018-01-251-11/+11
| | | | llvm-svn: 323473
* [clang-cl] Add support for /arch:AVX512F and /arch:AVX512Nico Weber2018-01-251-0/+40
| | | | | | | | | | | | | | | | | | | | | For /arch:AVX512F: clang-cl and cl.exe both defines __AVX512F__ __AVX512CD__. clang-cl also defines __AVX512ER__ __AVX512PF__. 64-bit cl.exe also defines (according to /Bz) _NO_PREFETCHW. For /arch:AVX512: clang-cl and cl.exe both define __AVX512F__ __AVX512CD__ __AVX512BW__ __AVX512DQ__ __AVX512VL__. 64-bit cl.exe also defines _NO_PREFETCHW. So not 100% identical, but pretty close. Also refactor the existing AVX / AVX2 code to not repeat itself in both the 32-bit and 64-bit cases. https://reviews.llvm.org/D42538 llvm-svn: 323433
* clang-cl: Simplify handling of /arch: flag.Nico Weber2018-01-251-51/+55
| | | | | | | | | | | | | | | | | | | r213083 initially implemented /arch: support by mapping it to CPU features. Then r241077 additionally mapped it to CPU, which made the feature flags redundant (if harmless). This change here removes the redundant mapping to feature flags, and rewrites test/Driver/cl-x86-flags.c to be a bit more of an integration test that checks for preprocessor defines like AVX (like documented on MSDN) instead of for driver flags. To keep emitting warn_drv_unused_argument, use getLastArgNoClaim() followed by an explicit claim() if needed. This is in preparation for adding support for /arch:AVX512(F). No intended behavior change. https://reviews.llvm.org/D42497 llvm-svn: 323426
* Erase REQUIRES: shell-preserves-root from remaining tests, see r242312.รพYaron Keren2015-07-151-2/+0
| | | | llvm-svn: 242323
* [clang-cl] Use /arch: to set the base target CPUReid Kleckner2015-06-301-2/+9
| | | | | | | | | | | | The main effect of this change is that /arch:IA32 will use i386 as the CPU, while clang-cl will continue to default to pentium4 (aka SSE2 plus the usual other features). /arch:AVX and /arch:AVX2 will also now enable the other features available in sandybridge and haswell respectively, which is consistent with MSDN. llvm-svn: 241077
* Fix test/Driver/cl-x86-flags.c by providing explicit --targetArtyom Skrobov2014-07-231-17/+17
| | | | | | | This isn't very neat, but we haven't found any better ways to make this test work with non-X86 default target. llvm-svn: 213769
* Add the --target option to clang-cl and use it to fix a test.Reid Kleckner2014-07-161-1/+1
| | | | llvm-svn: 213180
* clang-cl: Implement the -arch flagEhsan Akhgari2014-07-151-0/+71
| | | | | | | | | | | | | | | Summary: This implements the -arch flag for both x86 and x86-64 by letting them affect the default target features we pass to cc1. -m machine flags will override the features set by -arch. Reviewers: hansw Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4519 llvm-svn: 213083
* Require an x86 registered target for this test by splitting it outReid Kleckner2014-07-121-0/+12
This is a shot in the dark to fix the hexagon bot, so I'm not 100% sure this is the issue. llvm-svn: 212871
OpenPOWER on IntegriCloud