]> granicus.if.org Git - clang/commitdiff
[Headers] Add a test for arm64intr.h
authorMartin Storsjo <martin@martin.st>
Thu, 27 Jul 2017 19:45:13 +0000 (19:45 +0000)
committerMartin Storsjo <martin@martin.st>
Thu, 27 Jul 2017 19:45:13 +0000 (19:45 +0000)
This tests the ARM64 specific constants added in SVN r309081,
similar to the one added in r277928 for armintr.h.

Differential Revision: https://reviews.llvm.org/D35934

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309314 91177308-0d34-0410-b5e6-96231b3b80d8

test/Headers/ms-intrin.cpp

index d410b1d95f500b46c866b600aada9bf79f3e0048..b0fef9cc06a79db1bf7e4fd375d3d48891c58cd1 100644 (file)
@@ -64,4 +64,8 @@ void f() {
 #ifdef _M_ARM
   __dmb(_ARM_BARRIER_ISHST);
 #endif
+
+#ifdef _M_ARM64
+  __dmb(_ARM64_BARRIER_SY);
+#endif
 }