Skip to content

Commit 99e82a9

Browse files
committed
Add lowering tests
1 parent d88d587 commit 99e82a9

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ subroutine acc_kernels_loop
102102
! CHECK: acc.terminator
103103
! CHECK-NEXT: }{{$}}
104104

105+
!$acc kernels loop async(async) device_type(nvidia) async(1)
106+
DO i = 1, n
107+
a(i) = b(i)
108+
END DO
109+
! CHECK: acc.kernels combined(loop) async(%{{.*}} : i32, %c1{{.*}} : i32 [#acc.device_type<nvidia>])
110+
105111
!$acc kernels loop wait
106112
DO i = 1, n
107113
a(i) = b(i)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ subroutine acc_parallel_loop
104104
! CHECK: acc.yield
105105
! CHECK-NEXT: }{{$}}
106106

107+
!$acc parallel loop async(async) device_type(nvidia) async(1)
108+
DO i = 1, n
109+
a(i) = b(i)
110+
END DO
111+
! CHECK: acc.parallel combined(loop) async(%{{.*}} : i32, %c1{{.*}} : i32 [#acc.device_type<nvidia>])
112+
107113
!$acc parallel loop wait
108114
DO i = 1, n
109115
a(i) = b(i)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ subroutine acc_serial_loop
123123
! CHECK: acc.yield
124124
! CHECK-NEXT: }{{$}}
125125

126+
!$acc serial loop async(async) device_type(nvidia) async(1)
127+
DO i = 1, n
128+
a(i) = b(i)
129+
END DO
130+
! CHECK: acc.serial combined(loop) async(%{{.*}} : i32, %c1{{.*}} : i32 [#acc.device_type<nvidia>])
131+
126132
!$acc serial loop wait
127133
DO i = 1, n
128134
a(i) = b(i)

0 commit comments

Comments
 (0)