summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2015-02-18 15:08:37 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2015-02-18 15:08:37 +0000
commit933f0a04d35e3e5fca655eb4848b36532eca7b70 (patch)
treedae40c8738ad5127bc999ba18a30804b8baa3733
parent611cb70b83d8ae33360ab4bc057b9ba77c66ab29 (diff)
downloadbcm5719-llvm-933f0a04d35e3e5fca655eb4848b36532eca7b70.tar.gz
bcm5719-llvm-933f0a04d35e3e5fca655eb4848b36532eca7b70.zip
Fix test/CodeGen/atomic_ops.c failure on clang-cmake-mips builder (and others).
Not all targets generate 'store atomic' instructions for '_Atomic(_Complex int)'. Some targets use the __atomic_store builtin instead. This commit makes the test accept either one. llvm-svn: 229676
-rw-r--r--clang/test/CodeGen/atomic_ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGen/atomic_ops.c b/clang/test/CodeGen/atomic_ops.c
index 357655047d6..050b543c478 100644
--- a/clang/test/CodeGen/atomic_ops.c
+++ b/clang/test/CodeGen/atomic_ops.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm %s -o - | FileCheck %s
void foo(int x)
{
@@ -31,6 +32,6 @@ extern _Atomic(_Complex int) x;
void baz(int y) {
// CHECK-LABEL: @baz
-// CHECK: store atomic
+// CHECK: {{store atomic|call void @__atomic_store}}
x += y;
}
OpenPOWER on IntegriCloud