summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/complex.c
Commit message (Collapse)AuthorAgeFilesLines
* Recommit r222044 with a test fix - it does not make sense to huntAnton Korobeynikov2014-11-141-0/+16
| | | | | | for a typedef before arithmetic conversion in all rare corner cases. llvm-svn: 222049
* Again revert r222044 to resolve darwin objc test fails.Anton Korobeynikov2014-11-141-16/+0
| | | | llvm-svn: 222047
* Follow-up to D6217Anton Korobeynikov2014-11-141-0/+16
| | | | | | | | | | | | | | | | | Summary: Ok, here is somewhat addition to D6217 aiming to preserve old darwin behavior wrt the typedefed types. The actual change to SemaChecking turned out to be pretty gross, in particular: 1. We need to extract the typedef'ed type for proper diagnostics 2. We need to walk over paren expressions as well Reviewers: chandlerc, rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6256 llvm-svn: 222044
* Temporary revert r221818 until all the problemsAnton Korobeynikov2014-11-121-9/+0
| | | | | | with objc stuff will be resolved. llvm-svn: 221829
* Fix fallout from r219557Anton Korobeynikov2014-11-121-0/+9
| | | | | | | | | | | | | | | | | Summary: Consider the following nifty 1 liner: (0 ? csqrtl(2.0f) : sqrtl(2.0f)). One can easily obtain such code from e.g. tgmath. Right now it produces an assertion because we fail to do the promotion real => _Complex real. The case was properly handled previously (old handleOtherComplexFloatConversion routine), but was forgotten in the current version. This seems to be about fallout from r219557 Reviewers: chandlerc, rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6217 llvm-svn: 221821
* Fix crash on complex constant zero.Eli Friedman2013-07-161-0/+3
| | | | | | Fixes <rdar://problem/14442543>. llvm-svn: 186452
* Add support for complex compound assignments where the LHS is a scalar.Eli Friedman2013-06-121-4/+2
| | | | | | Fixes <rdar://problem/11224126> and PR12790. llvm-svn: 183821
* Test for r133070.Eli Friedman2011-06-151-0/+4
| | | | llvm-svn: 133079
* The FP constant evaluator was missing a few cases of unary operators that ↵John McCall2010-05-071-0/+4
| | | | | | | | | | | return floats but whose operand isn't a float: specifically, __real__ and __imag__. Instead of filtering these out, just implement them. Fixes <rdar://problem/7958272>. llvm-svn: 103307
* Fix minor oversight for increment/decrement of complex int. Add tests forEli Friedman2010-01-031-1/+31
| | | | | | coverage. llvm-svn: 92433
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Change compound assignment operators to keep track of both the promoted Eli Friedman2009-03-281-1/+2
| | | | | | | | | | | | | | | | | LHS type and the computation result type; this encodes information into the AST which is otherwise non-obvious. Fix Sema to always come up with the right answer for both of these types. Fix IRGen and the analyzer to account for these changes. This fixes PR2601. The approach is inspired by PR2601 comment 2. Note that this changes real *= complex in CodeGen from a silent miscompilation to an explicit error. I'm not really sure that the analyzer changes are correct, or how to test them... someone more familiar with the analyzer should check those changes. llvm-svn: 67889
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Handle returning complex types that get coerced. Fixes PR3131Anders Carlsson2008-11-251-0/+7
| | | | llvm-svn: 60058
* Since isComplexType() no longer returns true for _Complex integers, the codeChris Lattner2008-04-041-1/+6
| | | | | | generator needs to call isAnyComplexType(). This fixes PR1960. llvm-svn: 49220
* __real__ and __imag__ can be lvalues. Add support to ast and codegen for them.Chris Lattner2007-10-301-0/+9
| | | | llvm-svn: 43525
* add some more testcases now that sema is happier :)Chris Lattner2007-08-271-1/+3
| | | | llvm-svn: 41492
* new testcasesChris Lattner2007-08-261-0/+6
| | | | llvm-svn: 41465
* implement codegen for real/imag. TODO: imag of non-complex.Chris Lattner2007-08-241-0/+2
| | | | llvm-svn: 41376
* make this harderChris Lattner2007-08-231-0/+10
| | | | llvm-svn: 41346
* this test is passing, though it is generating bogus code at the moment.Chris Lattner2007-08-231-1/+0
| | | | llvm-svn: 41314
* xfail this for now.Chris Lattner2007-08-111-0/+1
| | | | llvm-svn: 41015
* make this harderChris Lattner2007-08-101-0/+10
| | | | llvm-svn: 40994
* add FIXME and un-XFAIL testGabor Greif2007-07-141-1/+0
| | | | llvm-svn: 39858
* fix type of main, use !=Gabor Greif2007-07-131-2/+2
| | | | llvm-svn: 39842
* implement _Complex * == and !=Gabor Greif2007-07-131-1/+1
| | | | llvm-svn: 39841
* a simple _Complex testcaseGabor Greif2007-07-131-0/+10
llvm-svn: 39836
OpenPOWER on IntegriCloud