[flang-commits] [flang] [flang] Fix failing test (PR #97634)

Mats Petersson via flang-commits flang-commits at lists.llvm.org
Wed Jul 3 13:37:40 PDT 2024


https://github.com/Leporacanthicus created https://github.com/llvm/llvm-project/pull/97634

Add requires line to not test when the target architecture isn't supported.

Technically we could make it a bit less restrictive, but want green builds.

>From 23dd45d07bdf5a5f01f6a5c33e2e93dc4069a770 Mon Sep 17 00:00:00 2001
From: Mats Petersson <mats.petersson at arm.com>
Date: Wed, 3 Jul 2024 21:06:43 +0100
Subject: [PATCH] [flang] Fix failing test

Add requires line to not test when the target architecture isn't
supported.

Technically we could make it a bit less restrictive, but want green
builds.
---
 flang/test/Lower/mcmodel.f90 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/flang/test/Lower/mcmodel.f90 b/flang/test/Lower/mcmodel.f90
index dd9eb145f5e2a8..971dc3b9056fe9 100644
--- a/flang/test/Lower/mcmodel.f90
+++ b/flang/test/Lower/mcmodel.f90
@@ -1,3 +1,5 @@
+! REQUIRES:  aarch64-registered-target && x86-registered-target
+
 ! RUN: %flang_fc1 -triple aarch64 -emit-llvm -mcmodel=tiny %s -o - | FileCheck %s -check-prefix=CHECK-TINY
 ! RUN: %flang_fc1 -emit-llvm -mcmodel=small %s -o - | FileCheck %s -check-prefix=CHECK-SMALL
 ! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-llvm -mcmodel=kernel %s -o - | FileCheck %s -check-prefix=CHECK-KERNEL



More information about the flang-commits mailing list