[flang-commits] [flang] b1a8c8a - [flang][test] Fix REQUIRES and options for a few x86 specific tests (#146872)
via flang-commits
flang-commits at lists.llvm.org
Mon Jul 7 02:26:20 PDT 2025
Author: David Spickett
Date: 2025-07-07T10:26:17+01:00
New Revision: b1a8c8a32c4b2453d526bcade145295966e90fda
URL: https://github.com/llvm/llvm-project/commit/b1a8c8a32c4b2453d526bcade145295966e90fda
DIFF: https://github.com/llvm/llvm-project/commit/b1a8c8a32c4b2453d526bcade145295966e90fda.diff
LOG: [flang][test] Fix REQUIRES and options for a few x86 specific tests (#146872)
These should have been looking for the "x86" target not "x64_64".
When run on AArch64 they failed because bbc tried to compile for
AArch64. Add a target option to fix that, as these tests are x86
specific.
Added:
Modified:
flang/test/Lower/Intrinsics/product.f90
flang/test/Lower/Intrinsics/sum.f90
flang/test/Lower/complex-operations.f90
Removed:
################################################################################
diff --git a/flang/test/Lower/Intrinsics/product.f90 b/flang/test/Lower/Intrinsics/product.f90
index f5f7cff106cee..df7c1e4ce7eaa 100644
--- a/flang/test/Lower/Intrinsics/product.f90
+++ b/flang/test/Lower/Intrinsics/product.f90
@@ -1,5 +1,5 @@
-! REQUIRES: x86_64-registered-target
-! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s
+! REQUIRES: x86-registered-target
+! RUN: bbc -target x86_64-unknown-linux-gnu --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s
! CHECK-LABEL: func @_QPproduct_test(
! CHECK-SAME: %[[arg0:.*]]: !fir.box<!fir.array<?xi32>>{{.*}}) -> i32
diff --git a/flang/test/Lower/Intrinsics/sum.f90 b/flang/test/Lower/Intrinsics/sum.f90
index d36b2b1263887..3167617b60457 100644
--- a/flang/test/Lower/Intrinsics/sum.f90
+++ b/flang/test/Lower/Intrinsics/sum.f90
@@ -1,5 +1,5 @@
-! REQUIRES: x86_64-registered-target
-! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s
+! REQUIRES: x86-registered-target
+! RUN: bbc -target x86_64-unknown-linux-gnu --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s
! CHECK-LABEL: func @_QPsum_test(
! CHECK-SAME: %[[arg0:.*]]: !fir.box<!fir.array<?xi32>>{{.*}}) -> i32 {
diff --git a/flang/test/Lower/complex-operations.f90 b/flang/test/Lower/complex-operations.f90
index fdd13719c5b71..38954626e77ee 100644
--- a/flang/test/Lower/complex-operations.f90
+++ b/flang/test/Lower/complex-operations.f90
@@ -1,6 +1,6 @@
! REQUIRES: flang-supports-f128-math
-! REQUIRES: x86_64-registered-target
-! RUN: bbc -hlfir=false %s -o - | FileCheck %s
+! REQUIRES: x86-registered-target
+! RUN: bbc -target x86_64-unknown-linux-gnu -hlfir=false %s -o - | FileCheck %s
! CHECK-LABEL: @_QPadd_test
subroutine add_test(a,b,c)
More information about the flang-commits
mailing list