[flang-commits] [flang] [flang][test] Fix REQUIRES and options for sum.f90 (PR #146872)
David Spickett via flang-commits
flang-commits at lists.llvm.org
Thu Jul 3 05:46:18 PDT 2025
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/146872
>From 2f563f009d17c5e41442f0186b6a147b6d82e39c Mon Sep 17 00:00:00 2001
From: David Spickett <david.spickett at linaro.org>
Date: Thu, 3 Jul 2025 12:40:24 +0000
Subject: [PATCH 1/2] [flang][test] Fix REQUIRES and options for sum.f90
This should have been looking for the "x86" target not "x64_64".
When run on AArch64 it failed because bbc tried to compile
for AArch64. Add a target option to fix that, as this test
is x86 specific.
---
flang/test/Lower/Intrinsics/sum.f90 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 {
>From b19991f4b6bcdb935d8a0e8ae475aa9f33368e35 Mon Sep 17 00:00:00 2001
From: David Spickett <david.spickett at linaro.org>
Date: Thu, 3 Jul 2025 12:46:02 +0000
Subject: [PATCH 2/2] product too
---
flang/test/Lower/Intrinsics/product.f90 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
More information about the flang-commits
mailing list