[flang-commits] [flang] [flang][test] Restrict Semantics/kinds04_q10.f90 to x86_64 (PR #103724)
via flang-commits
flang-commits at lists.llvm.org
Wed Aug 14 02:13:04 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-semantics
Author: Rainer Orth (rorth)
<details>
<summary>Changes</summary>
`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`.
---
Full diff: https://github.com/llvm/llvm-project/pull/103724.diff
1 Files Affected:
- (modified) flang/test/Semantics/kinds04_q10.f90 (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/103724
More information about the flang-commits
mailing list