diff --git a/clang/test/CodeGen/pr45476.cpp b/clang/test/CodeGen/pr45476.cpp --- a/clang/test/CodeGen/pr45476.cpp +++ b/clang/test/CodeGen/pr45476.cpp @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple arm-unknown-linux-gnueabi -emit-llvm %s -o - | FileCheck -check-prefix=LIBCALL %s +// RUN: %clang_cc1 -triple armv8-eabi -emit-llvm %s -o - | FileCheck -check-prefix=NATIVE %s // PR45476 // This test used to get into an infinite loop, @@ -11,8 +12,10 @@ _Atomic struct s3 a; extern "C" void foo() { - // CHECK-LABEL: @foo - // CHECK: store atomic i32 + // LIBCALL-LABEL: @foo + // LIBCALL: call void @__atomic_store + // NATIVE-LABEL: @foo + // NATIVE: store atomic i32 a = s3{1, 2, 3}; }