forked from OSchip/llvm-project
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:
parent
611cb70b83
commit
933f0a04d3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue