summaryrefslogtreecommitdiff
path: root/test/CodeGen/ms-volatile-aarch64.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ms-volatile-aarch64.c')
-rw-r--r--test/CodeGen/ms-volatile-aarch64.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/ms-volatile-aarch64.c b/test/CodeGen/ms-volatile-aarch64.c
new file mode 100644
index 0000000000000..2a139f5139fab
--- /dev/null
+++ b/test/CodeGen/ms-volatile-aarch64.c
@@ -0,0 +1,13 @@
+// REQUIRES: aarch64-registered-target
+// RUN: %clang_cc1 -triple aarch64-win32 -emit-llvm -fms-extensions -fms-volatile -o - < %s | FileCheck %s
+
+void test1(int volatile *p, int v) {
+ __iso_volatile_store32(p, v);
+ // CHECK-LABEL: @test1
+ // CHECK: store volatile {{.*}}, {{.*}}
+}
+int test2(const int volatile *p) {
+ return __iso_volatile_load32(p);
+ // CHECK-LABEL: @test2
+ // CHECK: load volatile {{.*}}
+}