[flang-commits] [flang] [flang] Add REQUIRES for the trampoline test (PR #185699)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Tue Mar 10 10:25:03 PDT 2026


https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/185699

Instead of listing the UNSUPPORTED list, I think it makes sense to have the REQUIRES. The REQUIRES list matches https://github.com/llvm/llvm-project/blob/1fdc16bd426f3db2aa772cc3a8dff33ec8e91e76/clang/lib/Driver/ToolChains/Flang.cpp#L209-L211

>From 45284be7f47b6318170cad24be8932045bff60a9 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Tue, 10 Mar 2026 13:17:20 -0400
Subject: [PATCH] [flang] Add REQUIRES for the trampoline test

---
 flang/test/Driver/fsafe-trampoline.f90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/test/Driver/fsafe-trampoline.f90 b/flang/test/Driver/fsafe-trampoline.f90
index 7318e7ea6f606..bfe124e447cf7 100644
--- a/flang/test/Driver/fsafe-trampoline.f90
+++ b/flang/test/Driver/fsafe-trampoline.f90
@@ -1,7 +1,7 @@
 ! Test that -fsafe-trampoline is properly forwarded from driver to
 ! frontend, and that -fno-safe-trampoline (default) works.
 
-! UNSUPPORTED: system-aix
+! REQUIRES: target=aarch64{{.*}} || target=x86{{.*}}
 
 ! RUN: %flang -### -fsafe-trampoline %s 2>&1 | FileCheck %s --check-prefix=ON
 ! RUN: %flang -### -fno-safe-trampoline %s 2>&1 | FileCheck %s --check-prefix=OFF



More information about the flang-commits mailing list