diff --git a/clang/test/CodeGen/atomic_ops.c b/clang/test/CodeGen/atomic_ops.c --- a/clang/test/CodeGen/atomic_ops.c +++ b/clang/test/CodeGen/atomic_ops.c @@ -1,7 +1,13 @@ // XFAIL: hexagon,sparc // (due to not having native load atomic support) +// XFAIL: riscv +// (due to requiring an explicit -target-feature +a) // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple riscv64 -target-feature +a -emit-llvm %s \ +// RUN: -o - | FileCheck %s +// RUN: %clang_cc1 -triple riscv32 -target-feature +a -emit-llvm %s \ +// RUN: -o - | FileCheck %s void foo(int x) {