summaryrefslogtreecommitdiff
path: root/test/Preprocessor/predefined-arch-macros.c
Commit message (Collapse)AuthorAge
* Add support for -march=bdver4.Benjamin Kramer2014-05-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207848 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add support for -march=bdver3 on x86.Benjamin Kramer2013-11-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193985 91177308-0d34-0410-b5e6-96231b3b80d8
* Add preprocessor support for powerpc vsx.Eric Christopher2013-10-16
| | | | | | The test should be expanded upon for more powerpc checking. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192849 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove an old, seemingly out of date, comment.Eric Christopher2013-10-16
| | | | | | The referenced script no longer seems to exist. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192848 91177308-0d34-0410-b5e6-96231b3b80d8
* Enabling 3DNow! prefetch instruction support for a few AMD processors in theYunzhong Gao2013-10-16
| | | | | | | | | | | | clang front end. This change will allow the __PRFCHW__ macro to be set on these processors and hence include prfchwintrin.h in x86intrin.h header. Support for the intrinsic itself seems to have already been added in r178041. Differential Revision: http://llvm-reviews.chandlerc.com/D1934 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192829 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding -mtbm and -mno-tbm command line options to the clang front end for theYunzhong Gao2013-09-24
| | | | | | | | | | | x86 TBM instruction set. Also adding a __TBM__ macro if the TBM feature is enabled. Otherwise there should be no functionality change to existing features. Phabricator code review is located here: http://llvm-reviews.chandlerc.com/D1693 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191326 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for -march=slm, aka Intel Atom Silvermont.Benjamin Kramer2013-08-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189670 91177308-0d34-0410-b5e6-96231b3b80d8
* Add avx512cd, avx512er, avx512pf feature flags and enable them on KNL CPU.Craig Topper2013-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188867 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename __AVX512__ to __AVX512F__Craig Topper2013-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188764 91177308-0d34-0410-b5e6-96231b3b80d8
* Add AVX-512 feature flag and knl cpu to clang.Craig Topper2013-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188758 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r188756 because some other changes snuck in with it.Craig Topper2013-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188757 91177308-0d34-0410-b5e6-96231b3b80d8
* Add AVX-512 feature flag and knl cpu to clang.Craig Topper2013-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188756 91177308-0d34-0410-b5e6-96231b3b80d8
* Add 'not' to commands that are expected to fail.Rafael Espindola2013-07-04
| | | | | | | This is at least good documentation, but also opens the possibility of using pipefail. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185652 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for -march=btver2.Benjamin Kramer2013-05-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181006 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing features for misc x86 CPUs to CPU feature translation. Patch by ↵Eli Friedman2012-11-17
| | | | | | Jung-uk Kim. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168239 91177308-0d34-0410-b5e6-96231b3b80d8
* Add clang support of RTM from TSXMichael Liao2012-11-10
| | | | | | | | | | | | | | - New options '-mrtm'/'-mno-rtm' are added to enable/disable RTM feature - Builtin macro '__RTM__' is defined if RTM feature is enabled - RTM intrinsic header is added and introduces 3 new intrinsics, namely '_xbegin', '_xend', and '_xabort'. - 3 new builtins are added to keep compatible with gcc, namely '__builtin_ia32_xbegin', '__builtin_ia32_xend', and '__builtin_ia32_xabort'. - Test cases for pre-defined macro and new intrinsic codegen are added. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167665 91177308-0d34-0410-b5e6-96231b3b80d8
* Wire up -mrdrnd for X86.Benjamin Kramer2012-07-07
| | | | | | | For some reason GCC decided to call the feature rdrnd instead of rdrand, which requires translating it for LLVM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159897 91177308-0d34-0410-b5e6-96231b3b80d8
* Add XOP feature flag.Craig Topper2012-06-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158284 91177308-0d34-0410-b5e6-96231b3b80d8
* Add __POPCNT__ to test cases for corei7 and corei7-avxCraig Topper2012-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157905 91177308-0d34-0410-b5e6-96231b3b80d8
* Add fma feature flag for Intel FMA instructions.Craig Topper2012-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157904 91177308-0d34-0410-b5e6-96231b3b80d8
* Define __SSE4A__ when targeting new AMD CPUs.Benjamin Kramer2012-05-29
| | | | | | This doesn't really fit the existing SSELevel so it gets an extra flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157630 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass a target triple explicitly to check platform specific macros definitions.Simon Atanasyan2012-05-09
| | | | | | | That allows to run the tests on all platforms successfully. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156500 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable AVX/AVX2 for Sandy Bridge, Ivy Bridge, and Haswell CPUs.Craig Topper2012-04-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155624 91177308-0d34-0410-b5e6-96231b3b80d8
* Generate tests for all of the x86 SIMD instruction feature setChandler Carruth2011-09-28
| | | | | | | | | | | | | | predefines based on the output of GCC as well as the CPU predefines. Invert tests for __AVX__, Clang's AVX feature is hard coded off still. Switch Atom from 'SSE3' to 'SSSE3'. This matches GCC's behavior, Intel's documentation, and ICC's documentation (such as I could dig up). Switch Athlon and Geode to enable 3dnowa rather than just 3dnow and nothing (resp.). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140692 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a little banner to this test. This lets my scripts more easilyChandler Carruth2011-09-28
| | | | | | | | | | automate the process of updating and generating these tests. If anyone is really interested, I can check my scripts for generating this test in, but its a horrible pile of shell... Not sure its really worth it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140691 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a think-o on my part that got enshrined in a FIXME by setting up theChandler Carruth2011-09-28
| | | | | | __tune_...__ define as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140690 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach Clang to reject 32-bit only CPUs when compiling in 64-bit mode.Chandler Carruth2011-09-28
| | | | | | Add 64-bit preprocessor macro tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140688 91177308-0d34-0410-b5e6-96231b3b80d8
* Begin fixing Clang's predefined macros for various architectures. ThisChandler Carruth2011-09-28
is *very* much a WIP that I'll be refining over the next several commits, but I need to get this checkpoint in place for sanity. This also adds a much more comprehensive test for architecture macros, which is roughly generated by inspecting the behavior of a trunk build of GCC. It still requires some massaging, but eventually I'll even check in the script that generates these so that others can use it to append more tests for more architectures, etc. Next up is a bunch of simplification of the Targets.cpp code, followed by a lot more test cases once we can reject invalid architectures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140673 91177308-0d34-0410-b5e6-96231b3b80d8