Skip to content

Commit 3e78aff

Browse files
authored
[flang] Fix Windows bot failure caused by #146667 (#147002)
Fixes a Windows bot failure caused by #146667. Just run the test if an AMD GPU target is registered. Hopefully, the bot now passes. Test coverage is not reduced since `bbc` is still run on all platforms.
1 parent 1d5d125 commit 3e78aff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/test/Lower/OpenMP/parallel-reduction-array.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
! RUN: %flang_fc1 -emit-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s --check-prefix=CPU
33

44
! RUN: bbc -emit-hlfir -fopenmp -fopenmp-is-target-device -fopenmp-is-gpu -o - %s 2>&1 | FileCheck %s --check-prefix=GPU
5-
! RUN: %flang_fc1 -triple amdgcn-amd-amdhsa -emit-hlfir -fopenmp -fopenmp-is-target-device -o - %s 2>&1 | FileCheck %s --check-prefix=GPU
5+
! RUN: %if amdgpu-registered-target %{ %flang_fc1 -triple amdgcn-amd-amdhsa -emit-hlfir -fopenmp -fopenmp-is-target-device -o - %s 2>&1 | \
6+
! RUN: FileCheck %s --check-prefix=GPU %}
67

78
program reduce
89
integer, dimension(3) :: i = 0

0 commit comments

Comments
 (0)