[flang-commits] [flang] [flang] Fix PPC and AARCH64 after #73301 (PR #74591)

via flang-commits flang-commits at lists.llvm.org
Wed Dec 6 05:50:27 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-semantics

Author: None (jeanPerier)

<details>
<summary>Changes</summary>

After https://github.com/llvm/llvm-project/pull/73301, all semantics tests using `triple XXX` options need to have a
`REQUIRED: XX-registered-target` since the llvm::TargetMachine is needed to get the llvm::DataLayout before semantics.

Fix three tests that lacked this.

Fixes:
https://lab.llvm.org/buildbot/#/builders/21/builds/87263 https://lab.llvm.org/buildbot/#/builders/268/builds/3841

---
Full diff: https://github.com/llvm/llvm-project/pull/74591.diff


3 Files Affected:

- (modified) flang/test/Semantics/kinds04_q10.f90 (+1) 
- (modified) flang/test/Semantics/real10-x86-01.f90 (+1) 
- (modified) flang/test/Semantics/real10-x86-02.f90 (+1) 


``````````diff
diff --git a/flang/test/Semantics/kinds04_q10.f90 b/flang/test/Semantics/kinds04_q10.f90
index 07da32e92c0f7..fbde6ed4c8cc1 100644
--- a/flang/test/Semantics/kinds04_q10.f90
+++ b/flang/test/Semantics/kinds04_q10.f90
@@ -8,6 +8,7 @@
 ! This test is for x86_64, where exponent-letter 'q' is for
 ! 10-byte extended precision
 ! UNSUPPORTED: system-windows
+! REQUIRES: x86-registered-target
 
 subroutine s(var)
   real :: realvar1 = 4.0E6_4
diff --git a/flang/test/Semantics/real10-x86-01.f90 b/flang/test/Semantics/real10-x86-01.f90
index 8e59fa842e215..ccaf34d8332a1 100644
--- a/flang/test/Semantics/real10-x86-01.f90
+++ b/flang/test/Semantics/real10-x86-01.f90
@@ -1,4 +1,5 @@
 ! RUN: %python %S/test_symbols.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
+! REQUIRES: x86-registered-target
 
  !DEF: /MainProgram1/rpdt DerivedType
  !DEF: /MainProgram1/rpdt/k TypeParam INTEGER(4)
diff --git a/flang/test/Semantics/real10-x86-02.f90 b/flang/test/Semantics/real10-x86-02.f90
index 1e7c0de39305a..9cbc85d91c4de 100644
--- a/flang/test/Semantics/real10-x86-02.f90
+++ b/flang/test/Semantics/real10-x86-02.f90
@@ -1,6 +1,7 @@
 ! RUN: %python %S/test_modfile.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
 ! Intrinsics SELECTED_INT_KIND, SELECTED_REAL_KIND, PRECISION, RANGE,
 ! RADIX, DIGITS
+! REQUIRES: x86-registered-target
 
 module m1
   ! REAL(KIND=10) handles 16 <= P < 19 (if available; ifort is KIND=16)

``````````

</details>


https://github.com/llvm/llvm-project/pull/74591


More information about the flang-commits mailing list