summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/ms-volatile.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/ms-volatile.c')
-rw-r--r--clang/test/CodeGen/ms-volatile.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/clang/test/CodeGen/ms-volatile.c b/clang/test/CodeGen/ms-volatile.c
deleted file mode 100644
index 88e19886c2d..00000000000
--- a/clang/test/CodeGen/ms-volatile.c
+++ /dev/null
@@ -1,62 +0,0 @@
-// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fms-volatile -o - < %s | FileCheck %s
-struct foo {
- volatile int x;
-};
-struct bar {
- int x;
-};
-typedef _Complex float __declspec(align(8)) baz;
-
-void test1(struct foo *p, struct foo *q) {
- *p = *q;
- // CHECK-LABEL: @test1
- // CHECK: load atomic volatile {{.*}} acquire
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
-void test2(volatile int *p, volatile int *q) {
- *p = *q;
- // CHECK-LABEL: @test2
- // CHECK: load atomic volatile {{.*}} acquire
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
-void test3(struct foo *p, struct foo *q) {
- p->x = q->x;
- // CHECK-LABEL: @test3
- // CHECK: load atomic volatile {{.*}} acquire
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
-void test4(volatile struct foo *p, volatile struct foo *q) {
- p->x = q->x;
- // CHECK-LABEL: @test4
- // CHECK: load atomic volatile {{.*}} acquire
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
-void test5(volatile struct foo *p, volatile struct foo *q) {
- *p = *q;
- // CHECK-LABEL: @test5
- // CHECK: load atomic volatile {{.*}} acquire
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
-void test6(struct bar *p, struct bar *q) {
- *p = *q;
- // CHECK-LABEL: @test6
- // CHECK-NOT: load atomic volatile {{.*}}
- // CHECK-NOT: store atomic volatile {{.*}}, {{.*}}
-}
-void test7(volatile struct bar *p, volatile struct bar *q) {
- *p = *q;
- // CHECK-LABEL: @test7
- // CHECK: load atomic volatile {{.*}} acquire
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
-void test8(volatile double *p, volatile double *q) {
- *p = *q;
- // CHECK-LABEL: @test8
- // CHECK: load atomic volatile {{.*}} acquire
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
-void test9(volatile baz *p, baz *q) {
- *p = *q;
- // CHECK-LABEL: @test9
- // CHECK: store atomic volatile {{.*}}, {{.*}} release
-}
OpenPOWER on IntegriCloud