summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/predefined-arch-macros.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for -march=btver2.Benjamin Kramer2013-05-031-0/+46
| | | | llvm-svn: 181006
* Add missing features for misc x86 CPUs to CPU feature translation. Patch by ↵Eli Friedman2012-11-171-1/+160
| | | | | | Jung-uk Kim. llvm-svn: 168239
* Add clang support of RTM from TSXMichael Liao2012-11-101-0/+2
| | | | | | | | | | | | - 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. llvm-svn: 167665
* Wire up -mrdrnd for X86.Benjamin Kramer2012-07-071-0/+6
| | | | | | | For some reason GCC decided to call the feature rdrnd instead of rdrand, which requires translating it for LLVM. llvm-svn: 159897
* Add XOP feature flag.Craig Topper2012-06-091-0/+3
| | | | llvm-svn: 158284
* Add __POPCNT__ to test cases for corei7 and corei7-avxCraig Topper2012-06-031-0/+4
| | | | llvm-svn: 157905
* Add fma feature flag for Intel FMA instructions.Craig Topper2012-06-031-0/+56
| | | | llvm-svn: 157904
* Define __SSE4A__ when targeting new AMD CPUs.Benjamin Kramer2012-05-291-0/+42
| | | | | | This doesn't really fit the existing SSELevel so it gets an extra flag. llvm-svn: 157630
* Pass a target triple explicitly to check platform specific macros definitions.Simon Atanasyan2012-05-091-0/+82
| | | | | | That allows to run the tests on all platforms successfully. llvm-svn: 156500
* Enable AVX/AVX2 for Sandy Bridge, Ivy Bridge, and Haswell CPUs.Craig Topper2012-04-261-8/+4
| | | | llvm-svn: 155624
* Generate tests for all of the x86 SIMD instruction feature setChandler Carruth2011-09-281-0/+244
| | | | | | | | | | | | | | 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.). llvm-svn: 140692
* Add a little banner to this test. This lets my scripts more easilyChandler Carruth2011-09-281-0/+4
| | | | | | | | | | 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. llvm-svn: 140691
* Fix a think-o on my part that got enshrined in a FIXME by setting up theChandler Carruth2011-09-281-6/+3
| | | | | | __tune_...__ define as well. llvm-svn: 140690
* Teach Clang to reject 32-bit only CPUs when compiling in 64-bit mode.Chandler Carruth2011-09-281-0/+206
| | | | | | Add 64-bit preprocessor macro tests. llvm-svn: 140688
* Begin fixing Clang's predefined macros for various architectures. ThisChandler Carruth2011-09-281-0/+415
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. llvm-svn: 140673
OpenPOWER on IntegriCloud