[flang-commits] [flang] [flang][test] Disable Evaluate/fold-out_of_range.f90 on SPARC (PR #102890)
Rainer Orth via flang-commits
flang-commits at lists.llvm.org
Tue Aug 13 06:32:08 PDT 2024
https://github.com/rorth updated https://github.com/llvm/llvm-project/pull/102890
>From f280507d6dea835d35a6d99e1a4e1dab5d4a76ee Mon Sep 17 00:00:00 2001
From: Rainer Orth <ro at gcc.gnu.org>
Date: Mon, 12 Aug 2024 14:24:41 +0200
Subject: [PATCH 1/2] [flang][test] Disable Evaluate/fold-out_of_range.f90 on
SPARC
`Flang :: Evaluate/fold-out_of_range.f90` currently `FAIL`s on
Linux/sparc64. This seems to be the same issue that led to disabling the
test on Solaris in 27549ee989d7e0803d41c206cf636f0b689210f1. In fact, the
generic Solaris disablement was over-eager: the test `PASS`es just fine on
Solaris/amd64.
To fix this, this patch disables the test on sparc only, at the same time
simplifying the `target=` clauses.
Tested on `sparc64-unknown-linux-gnu`, `sparcv9-sun-solaris2.11`,
`amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`.
---
flang/test/Evaluate/fold-out_of_range.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang/test/Evaluate/fold-out_of_range.f90 b/flang/test/Evaluate/fold-out_of_range.f90
index 81551255135d2f..6fb3d072bb2301 100644
--- a/flang/test/Evaluate/fold-out_of_range.f90
+++ b/flang/test/Evaluate/fold-out_of_range.f90
@@ -1,5 +1,5 @@
! RUN: %python %S/test_folding.py %s %flang_fc1 -pedantic
-! UNSUPPORTED: target=powerpc{{.*}}, target=aarch{{.*}}, target=arm{{.*}}, system-windows, system-solaris
+! UNSUPPORTED: target={{(arm|aarch64|powerpc|sparc).*}}, system-windows
! Tests folding of OUT_OF_RANGE().
module m
integer(1), parameter :: i1v(*) = [ -huge(1_1) - 1_1, huge(1_1) ]
>From db0a71f6b563ca7e9e5749078b71810065795eba Mon Sep 17 00:00:00 2001
From: Rainer Orth <ro at gcc.gnu.org>
Date: Tue, 13 Aug 2024 15:31:45 +0200
Subject: [PATCH 2/2] Require x86_64 target.
---
flang/test/Evaluate/fold-out_of_range.f90 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/flang/test/Evaluate/fold-out_of_range.f90 b/flang/test/Evaluate/fold-out_of_range.f90
index 6fb3d072bb2301..5a9f900beb2d59 100644
--- a/flang/test/Evaluate/fold-out_of_range.f90
+++ b/flang/test/Evaluate/fold-out_of_range.f90
@@ -1,5 +1,6 @@
-! RUN: %python %S/test_folding.py %s %flang_fc1 -pedantic
-! UNSUPPORTED: target={{(arm|aarch64|powerpc|sparc).*}}, system-windows
+! RUN: %python %S/test_folding.py %s %flang_fc1 -pedantic -triple x86_64-unknown-linux-gnu
+! UNSUPPORTED: system-windows
+! REQUIRES: target=x86_64{{.*}}
! Tests folding of OUT_OF_RANGE().
module m
integer(1), parameter :: i1v(*) = [ -huge(1_1) - 1_1, huge(1_1) ]
More information about the flang-commits
mailing list