[flang-commits] [flang] [flang][test] Restrict Semantics/kinds04_q10.f90 to x86_64 (PR #103724)

Rainer Orth via flang-commits flang-commits at lists.llvm.org
Wed Aug 14 02:12:32 PDT 2024


https://github.com/rorth created https://github.com/llvm/llvm-project/pull/103724

`Flang :: Semantics/kinds04_q10.f90` `FAIL`s on SPARC, both Solaris/sparcv9 and Linux/sparc64:
```
actual at 16: invalid argument on REAL(10) to REAL(4) conversion
actual at 20: invalid argument on REAL(10) to REAL(4) conversion
actual at 24: invalid argument on REAL(10) to REAL(4) conversion
actual at 31: invalid argument on REAL(10) to REAL(8) conversion
actual at 37: invalid argument on REAL(10) to REAL(8) conversion
```
This seems to be the same issue recently seen in PR #102890: even though the target in question supports `REAL(10)`, the host does not.

Therefore this patch restricts the test to `x86_64`.

Tested on `sparcv9-sun-solaris2.11`, `sparc64-unknown-linux-gnu`, `amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`.

>From 7d2c1e1b79f9c0a65c200361d0c1f46c3f51b956 Mon Sep 17 00:00:00 2001
From: Rainer Orth <ro at gcc.gnu.org>
Date: Wed, 14 Aug 2024 11:09:47 +0200
Subject: [PATCH] [flang][test] Restrict Semantics/kinds04_q10.f90 to x86_64

`Flang :: Semantics/kinds04_q10.f90` `FAIL`s on SPARC, both Solaris/sparcv9
and Linux/sparc64:
```
actual at 16: invalid argument on REAL(10) to REAL(4) conversion
actual at 20: invalid argument on REAL(10) to REAL(4) conversion
actual at 24: invalid argument on REAL(10) to REAL(4) conversion
actual at 31: invalid argument on REAL(10) to REAL(8) conversion
actual at 37: invalid argument on REAL(10) to REAL(8) conversion
```
This seems to be the same issue recently seen in PR #102890: even though
the target in question supports `REAL(10)`, the host does not.

Therefore this patch restricts the test to `x86_64`.

Tested on `sparcv9-sun-solaris2.11`, `sparc64-unknown-linux-gnu`,
`amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`.
---
 flang/test/Semantics/kinds04_q10.f90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/test/Semantics/kinds04_q10.f90 b/flang/test/Semantics/kinds04_q10.f90
index d352daa1cbbf06..25121657da1202 100644
--- a/flang/test/Semantics/kinds04_q10.f90
+++ b/flang/test/Semantics/kinds04_q10.f90
@@ -8,7 +8,7 @@
 ! This test is for x86_64, where exponent-letter 'q' is for
 ! 10-byte extended precision
 ! UNSUPPORTED: system-windows, system-aix
-! REQUIRES: x86-registered-target
+! REQUIRES: target=x86_64{{.*}}
 
 subroutine s(var)
   real :: realvar1 = 4.0E6_4



More information about the flang-commits mailing list