summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* stdlib.h is the wrong header for printf, and introduces test-breaking ↵Sebastian Redl2008-12-131-1/+1
| | | | | | definitions of inlines on Linux llvm-svn: 60981
* Add test case for using mmintrin (and making sure that inlining isDaniel Dunbar2008-12-121-0/+26
| | | | | | working with and without debug info). llvm-svn: 60960
* Fix invalid bit-field.Anders Carlsson2008-12-061-1/+1
| | | | llvm-svn: 60627
* Make Sema::CheckForConstantInitializer use Expr::Evaluate. This fixes PR3130.Anders Carlsson2008-12-051-0/+3
| | | | llvm-svn: 60580
* If a global var decl has an initializer, make sure to always set its linkage ↵Anders Carlsson2008-12-031-0/+7
| | | | | | to external. llvm-svn: 60462
* Fix for PR3150: obvious copy-paste bug in Eli Friedman2008-12-021-0/+4
| | | | | | ScalarExprEmitter::VisitBinLOr. llvm-svn: 60415
* Convert incomplete array types before emitting debug info for them, fixes ↵Anders Carlsson2008-11-261-1/+3
| | | | | | PR3134. llvm-svn: 60109
* Handle returning complex types that get coerced. Fixes PR3131Anders Carlsson2008-11-251-0/+7
| | | | llvm-svn: 60058
* Reimplement Expr::isConstantExpr in terms of Expr::Evaluate. This fixes PR2832.Anders Carlsson2008-11-241-0/+6
| | | | llvm-svn: 59946
* Forgot the newline :)Anders Carlsson2008-11-241-1/+1
| | | | llvm-svn: 59942
* Add test case for bug that's been fixed.Anders Carlsson2008-11-241-0/+6
| | | | llvm-svn: 59941
* Add test for PR2992.Anders Carlsson2008-11-221-0/+8
| | | | llvm-svn: 59861
* fix folding of '*doubleArray'Nuno Lopes2008-11-191-0/+7
| | | | llvm-svn: 59647
* Fix redundant load of bit-fields on assignment (to get the updatedDaniel Dunbar2008-11-192-2/+46
| | | | | | | | | value). - Use extra argument to EmitStoreThroughLValue to provide place to write update bit-field value if caller requires it. - This fixes several FIXMEs. llvm-svn: 59615
* fix folding of comma if given a non-constant operand.Nuno Lopes2008-11-161-0/+6
| | | | | | Eli please take a look, as I'm not sure if this gets the extension warning in the right place llvm-svn: 59422
* Fix testcase for 64-bit systems.Sebastian Redl2008-11-121-3/+3
| | | | llvm-svn: 59099
* Codegen support for fastcall & stdcall CC.Anton Korobeynikov2008-11-111-0/+17
| | | | | | Patch by Ilya Okonsky! llvm-svn: 59080
* merge some testcases together.Chris Lattner2008-11-113-16/+16
| | | | llvm-svn: 59031
* remove the wrong PR # from the file name.Chris Lattner2008-11-111-0/+0
| | | | llvm-svn: 59029
* add PR#Chris Lattner2008-11-111-0/+1
| | | | llvm-svn: 59028
* These tests have no needed to redirect stderr to stdout.Daniel Dunbar2008-11-112-6/+6
| | | | llvm-svn: 59019
* "Fix" PR3021, don't crash on generating record types when we can'tDaniel Dunbar2008-11-081-0/+5
| | | | | | generate the type of a member. llvm-svn: 58889
* Quick fix for PR2950, infinite loop generating debug info forDaniel Dunbar2008-10-311-0/+10
| | | | | | | recursive types. - Style will be clean up in further patches. llvm-svn: 58490
* Add attribute always_inline support.Daniel Dunbar2008-10-281-1/+3
| | | | llvm-svn: 58304
* Add test case to exercise IRgen "unsupported" path (mostly cleanup).Daniel Dunbar2008-10-271-0/+6
| | | | llvm-svn: 58286
* Added vec_set intrinsicsMon P Wang2008-10-181-0/+4
| | | | llvm-svn: 57749
* Quick patch for PR2784, assert genereting debug info for opaqueDaniel Dunbar2008-10-171-0/+6
| | | | | | | | | | structure. - I'm not sure yet about the behavior, but this at least prevents the crash. Add some asserts on RegionStack usage. llvm-svn: 57661
* fix incorrect rdar number.Chris Lattner2008-10-061-1/+1
| | | | llvm-svn: 57165
* __CONSTANT_CFSTRINGS__ should be defined even in C mode, otherwise the CFSTRChris Lattner2008-10-061-0/+13
| | | | | | won't expand to the builtin. This fixes rdar://6248329 llvm-svn: 57164
* Make sema and codegen allow __builtin___CFStringMakeConstantString as a validChris Lattner2008-10-061-0/+5
| | | | | | | constant lvalue. Implement this in codegen by moving the code out of CGBuiltin into EmitConstantExpr. llvm-svn: 57163
* Add X86 builtin code generation test case.Daniel Dunbar2008-10-051-0/+532
| | | | llvm-svn: 57104
* Add some builtins to codegen test case.Daniel Dunbar2008-10-051-6/+17
| | | | llvm-svn: 57101
* fix test for latest changes in llvm asm representationNuno Lopes2008-09-301-4/+4
| | | | llvm-svn: 56842
* Fix function-attributes test case to not rely on llvm-gcc.Daniel Dunbar2008-09-271-5/+9
| | | | llvm-svn: 56734
* Fix attributes test case to not run clang umpteen times.Daniel Dunbar2008-09-271-9/+11
| | | | llvm-svn: 56733
* Bug fix, result of isIntegerConstantExpr could be of incorrect widthDaniel Dunbar2008-09-221-0/+34
| | | | | | | for type. - PR2817 llvm-svn: 56482
* Implement CodeGen support for the 'CXXConditionDeclExpr' expression node, ↵Argyrios Kyrtzidis2008-09-101-0/+9
| | | | | | which represents a 'condition' declaration, e.g: "if (int x=0) {...}". llvm-svn: 56045
* Fix a number of issues w.r.t. emission of global for functions andDaniel Dunbar2008-09-083-0/+36
| | | | | | | | | | | | | | aliases. - Attributes specific to a definition are only set when the definition is seen. - Alias generation is delayed until the end of the module; necessary since the alias may reference forward. - Fixes: PR2743, <rdr://6140807&6094512> - Improves: <rdr://6095112> (added XFAIL) Also, print module on verification failures. llvm-svn: 55966
* Add missing RUN lineDaniel Dunbar2008-09-081-0/+2
| | | | llvm-svn: 55934
* Line endings: CRLF -> LFArgyrios Kyrtzidis2008-09-051-7/+7
| | | | llvm-svn: 55829
* Set sext/zext on function result.Daniel Dunbar2008-09-051-0/+22
| | | | | | - <rdar://problem/6156739> llvm-svn: 55815
* Implement codegen of aggregates as lvalues in binary expressions,Daniel Dunbar2008-09-041-1/+24
| | | | | | e.g. "(a = b).somefield". llvm-svn: 55758
* Add two test cases for builtins (mostly related to object sizeDaniel Dunbar2008-09-031-0/+95
| | | | | | builtins). llvm-svn: 55736
* In incompatible pointer-typed ?: expressions, add implicit conversionDaniel Dunbar2008-08-261-0/+8
| | | | | | | | | | | | | | | | | | | | of RHSs to id type instead of void* if either has Objective-C object type. - This ensures the result can still be used in normal places an object can be used, like a message send. Add implicit conversions for ?: applied to qualified id types to ensure that the RHSs are compatible. - This prevents a codegen crash (creating invalid PHI nodes). - Again, this relates to the fact that qualified id types have no canonical types. - Note that the implicit type casted to is incorrect, however this doesn't currently cause problems because of the flexibility of the id type. Test cases for above. llvm-svn: 55346
* Do typechecking and codegen for K&R-style function declarations Eli Friedman2008-08-251-0/+5
| | | | | | | correctly. Not a regression, but made more obvious by my recent fix which made function type compatibility checking a bit more strict. llvm-svn: 55339
* Add CodeGen support for CXXZeroInitValueExpr.Argyrios Kyrtzidis2008-08-231-0/+11
| | | | llvm-svn: 55249
* Missed a test case writing a .ll file.Daniel Dunbar2008-08-211-1/+1
| | | | | | | Suppress count output from 'make test' on errors (used to generate result code). llvm-svn: 55107
* Update a number of CodeGen tests to not create .ll files in the testDaniel Dunbar2008-08-2133-34/+34
| | | | | | | | directory. - Removed .ll from the svn:ignore lists to try and prevent this. - Added svn:ignore on test/Misc/Output llvm-svn: 55104
* Fix subtle bug introduced in r54852.Daniel Dunbar2008-08-201-0/+10
| | | | | | | | | - UsualUnaryConversions takes an Expr *& and may modify its argument, this broke when it was refactored into Sema::CheckCastTypes. This meant that we were missing implicit casts in some places. - Seems pretty sad that this got through our tests. llvm-svn: 55039
* Fix test case RUN: line (thanks Argiris)Daniel Dunbar2008-08-181-1/+1
| | | | llvm-svn: 54922
OpenPOWER on IntegriCloud