summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm.c
Commit message (Collapse)AuthorAgeFilesLines
* CodeGen: Simplify consecutive '%' modifiersDavid Majnemer2015-01-111-0/+7
| | | | | | LLVM the consecutive '%' modifiers are redundant, skip them. llvm-svn: 225602
* CodeGen: Simplify consecutive '&' modifiersDavid Majnemer2015-01-111-0/+7
| | | | | | LLVM the consecutive '&' modifiers are redundant, skip them. llvm-svn: 225601
* CodeGen: Let arrays be inputs to inline asmDavid Majnemer2014-07-141-0/+9
| | | | | | | | | | | An array showing up in an inline assembly input is accepted in ICC and GCC 4.8 This fixes PR20201. Differential Revision: http://reviews.llvm.org/D4382 llvm-svn: 212954
* Handle '*' and '#' asm constraint modifiers.Ulrich Weigand2012-10-291-0/+9
| | | | llvm-svn: 166924
* [ms-inline asm] Use the new Inline Asm Non-Standard Dialect attribute.Chad Rosier2012-08-101-0/+10
| | | | llvm-svn: 161642
* Add support for AVX registers to clang inline asm. Add a small testcaseEric Christopher2011-12-021-0/+6
| | | | | | | | | and update the Sema testcase with a register that we won't hit for a while I hope. Fixes rdar://10510405 llvm-svn: 145671
* Clean up some oddly gratuitous vertical whitespace.Eric Christopher2011-12-021-8/+0
| | | | llvm-svn: 145670
* Rename function.Eric Christopher2011-12-021-1/+1
| | | | llvm-svn: 145669
* Fix assertion failure in CodeGen where the input operand to an asmPeter Collingbourne2011-07-291-0/+9
| | | | | | | instruction is tied to an output operand which is a pointer, and the input operand is narrower than the output operand. llvm-svn: 136438
* fix PR10415, tidying up IR representation of module level inline asmChris Lattner2011-07-231-0/+9
| | | | | | to avoid extraneous \n's. llvm-svn: 135862
* Add a testcase for the previous commit and update an existing test for anEric Christopher2011-07-071-6/+20
| | | | | | | | extra register. Part of PR10299 and rdar://9740322 llvm-svn: 134657
* Add some missing X86-specific asm constraint letters, and fixDale Johannesen2010-08-241-0/+22
| | | | | | | some bugs in setting allowsRegister on the ones there. 8348447. llvm-svn: 111980
* Implement PR6845. We allow matching constraints to have differentChris Lattner2010-04-231-0/+21
| | | | | | | | input and output types when the smaller value isn't mentioned in the asm string. Extend this support from integers to also allowing fp values to be mismatched (if not mentioned in the asm string). llvm-svn: 102188
* fix PR6780, properly handling the IR {|} escapes in inline asm strings.Chris Lattner2010-04-051-0/+12
| | | | llvm-svn: 100449
* fix a buildbot failure, this was passing for me because the Chris Lattner2010-03-041-3/+7
| | | | | | '%t' file was left around on my disk. doh. llvm-svn: 97699
* merge asm-2.c into asm.c, remove asm-inout.c because it is Chris Lattner2010-03-031-0/+11
| | | | | | XFAIL and already tracked in bugzilla. llvm-svn: 97671
* fix PR6475, we were doing side-effecting stuff in an assert.Chris Lattner2010-03-031-1/+11
| | | | llvm-svn: 97669
* 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
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-3/+3
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* fix PR4938 by recognizing % as a modifier on outputs,Chris Lattner2009-10-131-0/+9
| | | | | | previously we only recognized it on inputs. llvm-svn: 83939
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-1/+1
| | | | llvm-svn: 81346
* MultiTestRunner: Validate '&&' at the end of RUN lines.Daniel Dunbar2009-07-251-1/+1
| | | | | | | | - This is just to normalize, these will go away soon hopefully. Added all the missing '&&'s that have crept in. :) llvm-svn: 77062
* Update testDaniel Dunbar2009-05-191-1/+1
| | | | llvm-svn: 72110
* look at the right operand when increasing the size of an asm output,Chris Lattner2009-05-031-0/+13
| | | | | | this fixes http://llvm.org/bugs/show_bug.cgi?id=3373#c20 llvm-svn: 70685
* allow references to the larger value in a tied constraintChris Lattner2009-05-031-1/+12
| | | | | | from the asm string, but reject references to the smaller one. llvm-svn: 70679
* add support for tying asm operands where the result is smaller thanChris Lattner2009-05-031-1/+8
| | | | | | the input. This is part of PR3373. llvm-svn: 70677
* Remove typoDaniel Dunbar2009-05-031-1/+1
| | | | llvm-svn: 70676
* implement support for asm outputs targetting non-simple lvalue destinationsChris Lattner2009-05-031-0/+11
| | | | | | like bitfields. incidentally llvm-gcc crashes on this sort of thing also. :) llvm-svn: 70675
* handle codegen of asms where a small input is tied to a large output.Chris Lattner2009-05-031-1/+11
| | | | llvm-svn: 70672
* Ignore plus operands when looking up the operand number from a named ↵Anders Carlsson2009-04-031-1/+7
| | | | | | operand. This matches llvm-gcc and fixes PR3908. llvm-svn: 68371
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Fix PR3682 by just disabling a broken assertion. This check should beChris Lattner2009-03-101-1/+7
| | | | | | | | done in sema, and is reflected by the existing PR3258. In the meantime, fix PR3682 by disabling a bogus assertion (which doesn't account for + operands). llvm-svn: 66533
* reduce duplication of parsing code between %0 and %x0 andChris Lattner2009-03-101-1/+6
| | | | | | add support for modifiers on named references, like %c[foo]. llvm-svn: 66532
* move matching of named operands into AsmStmt class. At the sameChris Lattner2009-03-101-13/+12
| | | | | | | time handle + operands in operand counting, fixing asm.c:t7 to expand into $2 instead of $1. llvm-svn: 66531
* Match gcc and always perform array/function conversion for asm input exprs. ↵Anders Carlsson2009-02-221-0/+6
| | | | | | Fixes PR3641. llvm-svn: 65256
* If an input constraint refers to an output constraint, it should have the ↵Anders Carlsson2009-01-271-4/+5
| | | | | | same constraint info as the output constraint. Fixes PR3417 llvm-svn: 63127
* Handle multi-value inputsAnders Carlsson2009-01-121-0/+7
| | | | llvm-svn: 62069
* More inline asm fixesAnders Carlsson2009-01-111-3/+19
| | | | llvm-svn: 62049
* Handle readwrite constraints correctlyAnders Carlsson2009-01-111-0/+5
llvm-svn: 62043
OpenPOWER on IntegriCloud