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
This commit is contained in:
Daniel Sanders 2015-02-18 15:08:37 +00:00
parent 611cb70b83
commit 933f0a04d3
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}