summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/atomic-align.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-09-11 07:35:01 +0000
committerDaniel Jasper <djasper@google.com>2017-09-11 07:35:01 +0000
commit9b80cb1f6c92a08f352286c3360ca49594e598da (patch)
tree03425d0040f1a0db523fb7ea7875dae58b7efe91 /test/CodeGenCXX/atomic-align.cpp
parent1b5154c90e932976b3ee7283528be59ddff072e3 (diff)
Revert r312830: "Reinstall the patch "Use EmitPointerWithAlignment to get alignment information of the pointer used in atomic expr"."
This triggers llvm.org/PR31620 in several of our internal builds. I'll forward reproduction instructions to the original author. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/atomic-align.cpp')
-rw-r--r--test/CodeGenCXX/atomic-align.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/CodeGenCXX/atomic-align.cpp b/test/CodeGenCXX/atomic-align.cpp
deleted file mode 100644
index 9852ac38a6..0000000000
--- a/test/CodeGenCXX/atomic-align.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// RUN: %clang_cc1 %s -std=c++11 -emit-llvm -o - -triple=x86_64-linux-gnu | FileCheck %s
-
-struct AM {
- int f1, f2;
-};
-alignas(8) AM m;
-AM load1() {
- AM am;
- // m is declared to align to 8bytes, so generate load atomic instead
- // of libcall.
- // CHECK-LABEL: @_Z5load1v
- // CHECK: load atomic {{.*}} monotonic
- __atomic_load(&m, &am, 0);
- return am;
-}
-
-struct BM {
- int f1;
- alignas(8) AM f2;
-};
-BM bm;
-AM load2() {
- AM am;
- // BM::f2 is declared to align to 8bytes, so generate load atomic instead
- // of libcall.
- // CHECK-LABEL: @_Z5load2v
- // CHECK: load atomic {{.*}} monotonic
- __atomic_load(&bm.f2, &am, 0);
- return am;
-}