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

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


Author: Michael Kruse
Date: 2026-10-24T21:19:37Z
New Revision: a48ab421cf081d4f44f5660e11f00af3472c5b67

URL: https://github.com/llvm/llvm-project/commit/a48ab421cf081d4f44f5660e11f00af3472c5b67
DIFF: https://github.com/llvm/llvm-project/commit/a48ab421cf081d4f44f5660e11f00af3472c5b67.diff

LOG: [Flang][test] Use x86 triple (#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. Apply the same -triple as other tests such as
flang/test/Semantics/real10-x86-01.f90 do.

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

Added: 
    

Modified: 
    flang/test/Semantics/kinds01.f90
    flang/test/Semantics/kinds02.f90

Removed: 
    


################################################################################
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