[flang-commits] [flang] [Flang][test] Use x86 triple (PR #235354)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Sat Oct 24 14:02:12 PDT 2026
https://github.com/Meinersbur created https://github.com/llvm/llvm-project/pull/235354
`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
>From 14d432538eb7aecd475738c991124843c79ed801 Mon Sep 17 00:00:00 2001
From: Michael Kruse <llvm-project at meinersbur.de>
Date: Sat, 24 Oct 2026 22:57:36 +0200
Subject: [PATCH] [test] Run expected triple
---
flang/test/Semantics/kinds01.f90 | 2 +-
flang/test/Semantics/kinds02.f90 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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.
More information about the flang-commits
mailing list