aboutsummaryrefslogtreecommitdiff
path: root/test/Headers/ms-intrin.cpp
diff options
context:
space:
mode:
authorAlbert Gutowski <agutowski@google.com>2016-10-14 17:33:05 +0000
committerAlbert Gutowski <agutowski@google.com>2016-10-14 17:33:05 +0000
commiteeed5f637da41dc691c3192f3b99e22e5cb76543 (patch)
tree42210c685082088cb9cdb7aa14ecb01e495378ad /test/Headers/ms-intrin.cpp
parent9c7db0323d4e9cbf391b8d738a5b2c5094e89d9f (diff)
Implement __stosb intrinsic as a volatile memset
Summary: We need `__stosb` to be an intrinsic, because SecureZeroMemory function uses it without including intrin.h. Implementing it as a volatile memset is not consistent with MSDN specification, but it gives us target-independent IR while keeping the most important properties of `__stosb`. Reviewers: rnk, hans, thakis, majnemer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25334 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Headers/ms-intrin.cpp')
-rw-r--r--test/Headers/ms-intrin.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Headers/ms-intrin.cpp b/test/Headers/ms-intrin.cpp
index 4d6803a081..d410b1d95f 100644
--- a/test/Headers/ms-intrin.cpp
+++ b/test/Headers/ms-intrin.cpp
@@ -38,7 +38,6 @@ void f() {
__movsd(0, 0, 0);
__movsw(0, 0, 0);
- __stosb(0, 0, 0);
__stosd(0, 0, 0);
__stosw(0, 0, 0);