LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 20202 - clang-cl: expected unqualified-id when using ~15 in inline assembly
Summary: clang-cl: expected unqualified-id when using ~15 in inline assembly
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: trunk
Hardware: PC All
: P normal
Assignee: Ehsan Akhgari [:ehsan]
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-03 23:45 PDT by Ehsan Akhgari [:ehsan]
Modified: 2014-07-07 19:14 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ehsan Akhgari [:ehsan] 2014-07-03 23:45:41 PDT
$ cat test.cpp
void TransposeUVWx8_SSE2() {
  __asm {
    and esp, ~15
  }
}

Ehsan Akhgari@WIN-LD01V6P651K /c/moz/src/obj/media/libyuv/libyuv_libyuv
$ clang-cl -c test.cpp
test.cpp(3,14) :  error: expected unqualified-id
    and esp, ~15
             ^
1 error generated.
Comment 1 Ehsan Akhgari [:ehsan] 2014-07-04 09:21:36 PDT
I have a fix: http://reviews.llvm.org/D4391
Comment 2 Ehsan Akhgari [:ehsan] 2014-07-04 09:31:40 PDT
Test case: http://reviews.llvm.org/D4392
Comment 3 Ehsan Akhgari [:ehsan] 2014-07-04 14:13:27 PDT
Fixed in r212352.
Comment 4 Reid Kleckner 2014-07-07 19:14:19 PDT
Thanks!