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

via flang-commits flang-commits at lists.llvm.org
Wed Jul 3 13:38:30 PDT 2024


Author: Mats Petersson
Date: 2024-07-03T21:38:27+01:00
New Revision: b5864988b3230324f5426036f45aab43d20a5b94

URL: https://github.com/llvm/llvm-project/commit/b5864988b3230324f5426036f45aab43d20a5b94
DIFF: https://github.com/llvm/llvm-project/commit/b5864988b3230324f5426036f45aab43d20a5b94.diff

LOG: [flang] Fix failing test (#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.

Added: 
    

Modified: 
    flang/test/Lower/mcmodel.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/mcmodel.f90 b/flang/test/Lower/mcmodel.f90
index dd9eb145f5e2a..971dc3b9056fe 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