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 21234 - [ASan/Win] clang-cl error with ASAN: inline assembly requires more registers than available
Summary: [ASan/Win] clang-cl error with ASAN: inline assembly requires more registers ...
Status: NEW
Alias: None
Product: libraries
Classification: Unclassified
Component: Register Allocator (show other bugs)
Version: trunk
Hardware: PC All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-09 20:08 PDT by Ehsan Akhgari [:ehsan]
Modified: 2015-12-11 08:53 PST (History)
10 users (show)

See Also:
Fixed By Commit(s):


Attachments
Generated LLVM code (7.92 KB, application/octet-stream)
2014-10-09 20:08 PDT, Ehsan Akhgari [:ehsan]
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ehsan Akhgari [:ehsan] 2014-10-09 20:08:27 PDT
Created attachment 13180 [details]
Generated LLVM code

$ cat test.c
void f(unsigned a, unsigned b, unsigned c)
{
    __asm {
        push    c
        mov     ecx,a
        mov     edx,0
        mov     eax,b
    }
}
$ ./bin/clang-cl -m32 -c -fsanitize=address test.c
test.c(3,5) :  error: inline assembly requires more registers than available
    __asm {
    ^
1 error generated.