]> granicus.if.org Git - clang/commit
ms Intrin.h: Fix __movsw's and __stosw's inline asm.
authorNico Weber <nicolasweber@gmx.de>
Tue, 22 Sep 2015 00:46:21 +0000 (00:46 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 22 Sep 2015 00:46:21 +0000 (00:46 +0000)
commitb260a69ee7af1c3d001d32562759171ee8353701
treec36218c8fd864337b63b6fb62d2139dae1ac7d31
parent52901e356e8252f9c8649a6d155bdd2c9b7acc3c
ms Intrin.h: Fix __movsw's and __stosw's inline asm.

Before, clang's internal assembler would reject the inline asm in clang's
Intrin.h.  To make sure this doesn't happen for other Intrin.h functions using
__asm__ blocks, add 32-bit and 64-bit codegen tests for Intrin.h.

Sadly, these tests discovered that __readcr3 and __writecr3 have bad
implementations in 64-bit builds.  This will have to be fixed in a follow-up.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248234 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/Intrin.h
test/Headers/ms-intrin.cpp