Skip to content

Commit 480d413

Browse files
committed
Move the OpenACC related tests to expected fail list for now.
1 parent faa3813 commit 480d413

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

flang/test/Lower/OpenACC/acc-loop.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
! This test checks lowering of OpenACC loop directive.
22

33
! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s
4+
! XFAIL: *
45

56
program acc_loop
67

flang/test/Lower/pre-fir-tree05.f90

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
! RUN: bbc -fdebug-pre-fir-tree -fparse-only -fopenacc %s | FileCheck %s
2+
! XFAIL: *
3+
4+
! Test structure of the Pre-FIR tree with OpenACC construct
5+
6+
! CHECK: Subroutine foo
7+
subroutine foo()
8+
! CHECK-NEXT: <<OpenACCConstruct>>
9+
! CHECK-NEXT: <<OpenACCConstruct>>
10+
!$acc parallel
11+
!$acc loop
12+
! CHECK-NEXT: <<DoConstruct>>
13+
! CHECK-NEXT: NonLabelDoStmt
14+
do i=1,5
15+
! CHECK-NEXT: PrintStmt
16+
print *, "hey"
17+
! CHECK-NEXT: <<DoConstruct>>
18+
! CHECK-NEXT: NonLabelDoStmt
19+
do j=1,5
20+
! CHECK-NEXT: PrintStmt
21+
print *, "hello", i, j
22+
! CHECK-NEXT: EndDoStmt
23+
! CHECK-NEXT: <<End DoConstruct>>
24+
end do
25+
! CHECK-NEXT: EndDoStmt
26+
! CHECK-NEXT: <<End DoConstruct>>
27+
end do
28+
!$acc end parallel
29+
! CHECK-NEXT: <<End OpenACCConstruct>>
30+
! CHECK-NEXT: <<End OpenACCConstruct>>
31+
! CHECK-NEXT: ContinueStmt
32+
end subroutine
33+
! CHECK-NEXT: EndSubroutine foo
34+
35+
! CHECK: Subroutine foo
36+
subroutine foo2()
37+
! CHECK-NEXT: <<OpenACCConstruct>>
38+
!$acc parallel loop
39+
! CHECK-NEXT: <<DoConstruct>>
40+
! CHECK-NEXT: NonLabelDoStmt
41+
do i=1,5
42+
! CHECK-NEXT: EndDoStmt
43+
! CHECK-NEXT: <<End DoConstruct>>
44+
end do
45+
!$acc end parallel loop
46+
! CHECK-NEXT: <<End OpenACCConstruct>>
47+
! CHECK-NEXT: ContinueStmt
48+
end subroutine
49+
! CHECK-NEXT: EndSubroutine foo2
50+

0 commit comments

Comments
 (0)