[flang-commits] [flang] [Flang][test] Use x86 triple (PR #235354)

via flang-commits flang-commits at lists.llvm.org
Sat Oct 24 14:02:50 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-semantics

Author: Michael Kruse (Meinersbur)

<details>
<summary>Changes</summary>

`REAL(10)` is only available on x86 targets. x86-registered-target enabled in #<!-- -->235068 is insufficient, it also needs to be compiled to the x86 target triple.

Note: Some constant foldings are only available if the flang compiler itself runs under x86, but folding is not what is tested here.

Should fix the [clang-aarch64-sve-vls-2stage](https://lab.llvm.org/buildbot/#/builders/4) buildbot

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


2 Files Affected:

- (modified) flang/test/Semantics/kinds01.f90 (+1-1) 
- (modified) flang/test/Semantics/kinds02.f90 (+1-1) 


``````````diff
diff --git a/flang/test/Semantics/kinds01.f90 b/flang/test/Semantics/kinds01.f90
index 7659b042b181a3..876b0abfe096ff 100644
--- a/flang/test/Semantics/kinds01.f90
+++ b/flang/test/Semantics/kinds01.f90
@@ -1,5 +1,5 @@
 ! REQUIRES: x86-registered-target, flang-supports-f128-math
-! RUN: %python %S/test_symbols.py %s %flang_fc1
+! RUN: %python %S/test_symbols.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
  !DEF: /MainProgram1/jk1 ObjectEntity INTEGER(1)
  integer(kind=1) jk1
  !DEF: /MainProgram1/js1 ObjectEntity INTEGER(1)
diff --git a/flang/test/Semantics/kinds02.f90 b/flang/test/Semantics/kinds02.f90
index 5ed38b14f8acb3..ae423c5de2f4f3 100644
--- a/flang/test/Semantics/kinds02.f90
+++ b/flang/test/Semantics/kinds02.f90
@@ -1,5 +1,5 @@
 ! REQUIRES: x86-registered-target
-! RUN: %python %S/test_errors.py %s %flang_fc1
+! RUN: %python %S/test_errors.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
 ! C712 The value of scalar-int-constant-expr shall be nonnegative and
 ! shall specify a representation method that exists on the processor.
 ! C714 The value of kind-param shall be nonnegative.

``````````

</details>


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


More information about the flang-commits mailing list