Skip to content

Commit b872c4c

Browse files
authored
[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.
1 parent f953b5e commit b872c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/test/Driver/print-supported-cpus.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
! RUN: %flang --target=aarch64-unknown-linux-gnu --print-supported-cpus 2>&1 \
1919
! RUN: | FileCheck %s --check-prefixes=AARCH64,CHECK \
2020
! RUN: %}
21-
! RUN: %if x86-registered-target %{ \
21+
! RUN: %if aarch64-registered-target %{ \
2222
! RUN: %flang --target=aarch64-unknown-linux-gnu -mcpu=help 2>&1 \
2323
! RUN: | FileCheck %s --check-prefixes=AARCH64,CHECK \
2424
! RUN: %}
25-
! RUN: %if x86-registered-target %{ \
25+
! RUN: %if aarch64-registered-target %{ \
2626
! RUN: %flang --target=aarch64-unknown-linux-gnu -mtune=help 2>&1 \
2727
! RUN: | FileCheck %s --check-prefixes=AARCH64,CHECK \
2828
! RUN: %}

0 commit comments

Comments
 (0)