summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/ms-inline-asm.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixups to FE tests affected by D36793Coby Tayree2017-08-241-8/+3
| | | | | | Differential Revision: https://reviews.llvm.org/D36794 llvm-svn: 311640
* Sema: prevent __declspec(naked) use on x64Saleem Abdulrasool2017-04-071-1/+1
| | | | | | | | | MSDN (https://msdn.microsoft.com/en-us/library/h5w10wxs.aspx) indicates that `__declspec(naked)` is only permitted on x86 and ARM targets. Testing with cl does confirm this behaviour. Provide a warning for use of `__declspec(naked)` on x64. llvm-svn: 299774
* __declspec is not a core Clang language extension. Instead, require ↵Aaron Ballman2015-05-261-1/+1
| | | | | | | -fms-extensions or -fborland to enable the language extension. Note: __declspec is also temporarily enabled when compiling for a CUDA target because there are implementation details relying on __declspec(property) support currently. When those details change, __declspec should be disabled for CUDA targets. llvm-svn: 238238
* ms-inline-asm: Correctly mark MS inline ASM labels as usedEhsan Akhgari2014-10-081-2/+8
| | | | | | | | | | | | | | Summary: This fixes PR21155. Test Plan: The patch includes a test. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5619 llvm-svn: 219322
* ms-inline-asm: Scope inline asm labels to functionsEhsan Akhgari2014-09-221-3/+37
| | | | | | | | | | | | | | | | Summary: This fixes PR20023. In order to implement this scoping rule, we piggy back on the existing LabelDecl machinery, by creating LabelDecl's that will carry the "internal" name of the inline assembly label, which we will rewrite the asm label to. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4589 llvm-svn: 218230
* Don't allow inline asm statements to reference parameters in naked functionsHans Wennborg2014-09-041-0/+11
| | | | | | Differential Revision: http://reviews.llvm.org/D5183 llvm-svn: 217200
* MS inline asm: Add tests for LLVM r214468Reid Kleckner2014-08-011-0/+4
| | | | | | This used to assert. llvm-svn: 214551
* clang-cl: Merge adjacent single-line __asm blocksEhsan Akhgari2014-07-251-13/+13
| | | | | | | | | | | | | | | | | Summary: This patch extends the __asm parser to make it keep parsing input tokens as inline assembly if a single-line __asm line is followed by another line starting with __asm too. It also makes sure that we correctly keep matching braces in such situations by separating the notions of how many braces we are matching and whether we are in single-line asm block mode. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4598 llvm-svn: 213916
* Fix up the test that expects the failure fixed in r212352Ehsan Akhgari2014-07-041-2/+0
| | | | llvm-svn: 212353
* Add tests for MS inline asm change r203146Reid Kleckner2014-03-061-0/+26
| | | | llvm-svn: 203147
* Tests for LLVM MS inline asm change r202865Reid Kleckner2014-03-041-0/+25
| | | | llvm-svn: 202866
* clang/test: REQUIRES: s/x86-64-registered-target/x86-registered-target/NAKAMURA Takumi2013-12-041-1/+1
| | | | llvm-svn: 196350
* MS inline asm: When LLVM called back to Clang to parse a name and do nameDmitri Gribenko2013-12-031-0/+18
| | | | | | | | lookup, if parsing failed, we did not restore the lexer state properly, and eventually crashed. This change ensures that we always consume all the tokens from the new token stream we started to parse the name from inline asm. llvm-svn: 196182
* Reenable ms inline asm test.Benjamin Kramer2013-12-011-6/+6
| | | | | | LLVM r196044 should make it pass. llvm-svn: 196045
* Fail these tests in a way that doesn't cause unexpected successes, per Daniel'sChad Rosier2013-01-241-2/+1
| | | | | | suggestion. llvm-svn: 173367
* Temporarily XFAIL this test; the compiler will segfault if the target-specificChad Rosier2013-01-241-0/+1
| | | | | | | parser is not included in the compiler. Thanks to Renato for discovering the underlying issue. llvm-svn: 173365
* [ms-inline asm] Remove the -fenable-experimental-ms-inline-asm flag. MS-styleChad Rosier2013-01-221-1/+1
| | | | | | inline assembly can be enable with -fasm-blocks or -fms-extensions alone. llvm-svn: 173186
* [ms-inline asm] Test case for r172773.Chad Rosier2013-01-181-0/+12
| | | | llvm-svn: 172774
* [ms-inline asm] Updates and test case for r172743.Chad Rosier2013-01-171-16/+0
| | | | | | Part of rdar://12576868 llvm-svn: 172744
* [ms-inline asm] Test case for r170037.Chad Rosier2012-12-121-1/+4
| | | | llvm-svn: 170038
* [driver, ms-inline asm] MS-Style inline assembly is controlled by theChad Rosier2012-12-051-1/+1
| | | | | | | -fasm-blocks flag, not the -fms-extensions flag. rdar://12808010 llvm-svn: 169422
* [ms-inline asm] Add test case for r166792.Chad Rosier2012-10-261-0/+14
| | | | llvm-svn: 166793
* These tests require an actual x86 registered target, so mark them as such. ↵David Tweed2012-10-261-0/+1
| | | | | | | | Tested on ARM. Patch by Joey Gouly. llvm-svn: 166765
* [ms-inline-asm] Add handling for errors coming out of the backend.Eli Friedman2012-10-231-2/+17
| | | | llvm-svn: 166463
* Replace an assertion with an error for empty __asm statements.Bob Wilson2012-09-241-0/+5
llvm-svn: 164551
OpenPOWER on IntegriCloud