[flang-commits] [flang] [flang][Driver] Fix incorrect condition in test (PR #117391)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Fri Nov 22 14:38:30 PST 2024


https://github.com/tarunprabhu created https://github.com/llvm/llvm-project/pull/117391

The conditions in a test did not match the target that was being requested. This resulted in a test failure when building with -DTARGETS_TO_BUILD=X86. This is now fixed.

>From a21edda1b10de77399d493cc8e0ec352fd27195c Mon Sep 17 00:00:00 2001
From: Tarun Prabhu <tarun.prabhu at gmail.com>
Date: Fri, 22 Nov 2024 15:34:54 -0700
Subject: [PATCH] [flang][Driver] Fix incorrect condition in test

The conditions in a test did not match the target that was being requested.
This resulted in a test failure when building with -DTARGETS_TO_BUILD=X86. This
is now fixed.
---
 flang/test/Driver/print-supported-cpus.f90 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/flang/test/Driver/print-supported-cpus.f90 b/flang/test/Driver/print-supported-cpus.f90
index 13688b193f9b92..60b725d4e1dcfc 100644
--- a/flang/test/Driver/print-supported-cpus.f90
+++ b/flang/test/Driver/print-supported-cpus.f90
@@ -18,11 +18,11 @@
 ! RUN:   %flang --target=aarch64-unknown-linux-gnu --print-supported-cpus 2>&1 \
 ! RUN:     | FileCheck %s --check-prefixes=AARCH64,CHECK \
 ! RUN: %}
-! RUN: %if x86-registered-target %{ \
+! RUN: %if aarch64-registered-target %{ \
 ! RUN:   %flang --target=aarch64-unknown-linux-gnu -mcpu=help 2>&1 \
 ! RUN:     | FileCheck %s --check-prefixes=AARCH64,CHECK \
 ! RUN: %}
-! RUN: %if x86-registered-target %{ \
+! RUN: %if aarch64-registered-target %{ \
 ! RUN:   %flang --target=aarch64-unknown-linux-gnu -mtune=help 2>&1 \
 ! RUN:     | FileCheck %s --check-prefixes=AARCH64,CHECK \
 ! RUN: %}



More information about the flang-commits mailing list