[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:42:36 PDT 2025


https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/146872

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.

>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] [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 {



More information about the flang-commits mailing list