[flang-commits] [flang] [flang][OpenMP] Restricting Integration test atomic-capture-release.f90 run to x86 and aarch64 (PR #200770)
via flang-commits
flang-commits at lists.llvm.org
Mon Jun 1 03:08:12 PDT 2026
https://github.com/SunilKuravinakop created https://github.com/llvm/llvm-project/pull/200770
Similar to the the change in `flang/test/Integration/OpenMP/atomic-compare.f90`, restricting the test case `flang/test/Integration/OpenMP/atomic-capture-release.f90` to run on
`x86-registered-target & aarch64-registered-target`
This also Fixes [#200729](https://github.com/llvm/llvm-project/issues/200729)
>From 30053141403b21086a8f9dbba24352f70a600477 Mon Sep 17 00:00:00 2001
From: Sunil Kuravinakop <kuravina at pe31.hpc.amslabs.hpecorp.net>
Date: Mon, 1 Jun 2026 04:57:35 -0500
Subject: [PATCH] Similar to flang/test/Integration/OpenMP/atomic-compare.f90
making changes to run it on x86_64-unknown-linux-gnu &
aarch64-registered-target.
---
flang/test/Integration/OpenMP/atomic-capture-release.f90 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flang/test/Integration/OpenMP/atomic-capture-release.f90 b/flang/test/Integration/OpenMP/atomic-capture-release.f90
index 872d7b1394e36..d0090f7e6ee02 100644
--- a/flang/test/Integration/OpenMP/atomic-capture-release.f90
+++ b/flang/test/Integration/OpenMP/atomic-capture-release.f90
@@ -6,7 +6,8 @@
! added to this directory and sub-directories.
!===----------------------------------------------------------------------===!
-!RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-llvm -fopenmp -fopenmp-version=51 %s -o - | FileCheck %s
+!RUN: %if x86-registered-target %{ %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-llvm -fopenmp -fopenmp-version=51 %s -o - | FileCheck %s %}
+!RUN: %if aarch64-registered-target %{ %flang_fc1 -triple aarch64-unknown-linux-gnu -emit-llvm -fopenmp -fopenmp-version=51 %s -o - | FileCheck %s %}
! Real(4) capture with release ordering: the initial load in the cmpxchg loop
! must use monotonic (not release, which is invalid for loads in LLVM IR).
More information about the flang-commits
mailing list