summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-mips-args.c
Commit message (Collapse)AuthorAgeFilesLines
* [mips] Check that features required by built-ins are enabledSimon Atanasyan2019-11-291-1/+2
| | | | | | | | | | | | Now Clang does not check that features required by built-in functions are enabled. That causes errors in the backend reported in PR44018. This patch fixes this bug by checking that required features are enabled. This should fix PR44018. Differential Revision: https://reviews.llvm.org/D70808
* [x86] Teach the builtin argument range check to allow invalid ranges inChandler Carruth2018-06-211-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dead code. This is important for C++ templates that essentially compute the valid input in a way that is constant and will cause all the invalid cases to be dead code that is deleted. Code in the wild actually does this and GCC also accepts these kinds of patterns so it is important to support it. To make this work, we provide a non-error path to diagnose these issues, and use a default-error warning instead. This keeps the relatively strict handling but prevents nastiness like SFINAE on these errors. It also allows us to safely use the system to diagnose this only when it occurs at runtime (in emitted code). Entertainingly, this required fixing the syntax in various other ways for the x86 test because we never bothered to diagnose that the returns were invalid. Since debugging these compile failures was super confusing, I've also improved the diagnostic to actually say what the value was. Most of the checks I've made ignore this to simplify maintenance, but I've checked it in a few places to make sure the diagnsotic is working. Depends on D48462. Without that, we might actually crash some part of the compiler after bypassing the error here. Thanks to Richard, Ben Kramer, and especially Craig Topper for all the help here. Differential Revision: https://reviews.llvm.org/D48464 llvm-svn: 335309
* Support MIPS DSP Rev2 intrinsics.Simon Atanasyan2012-08-271-0/+23
| | | | | | The patch reviewed by Akira Hatanaka. llvm-svn: 162669
* Tests: check for target availability for target-specific tests.Jim Grosbach2012-07-091-0/+1
| | | | | | | | Lots of tests are using an explicit target triple w/o first checking that the target is actually available. Add a REQUIRES clause to a bunch of them. This should hopefully unbreak bots which don't configure w/ all targets enabled. llvm-svn: 159949
* MIPS: Range check __builtin_mips_wrdsp / __builtin_mips_rddsp arguments ↵Simon Atanasyan2012-07-081-0/+4
| | | | | | against the upper/lower values. llvm-svn: 159911
* MIPS: Mark arguments of __builtin_mips_wrdsp / __builtin_mips_rddsp as a ↵Simon Atanasyan2012-07-081-0/+9
constant expression. llvm-svn: 159910
OpenPOWER on IntegriCloud