1 ! Test that non-standard shortloop clause is accepted and ignored with a
4 ! RUN: %flang_fc1 -fopenacc -emit-hlfir %s -o - 2>&1 | FileCheck %s
6 ! CHECK: warning: Non-standard shortloop clause ignored
7 ! CHECK: warning: Non-standard shortloop clause ignored
8 ! CHECK: warning: Non-standard shortloop clause ignored
9 ! CHECK: warning: Non-standard shortloop clause ignored
11 subroutine test_loop(a
, b
, c
)
13 real, dimension(100) :: a
,b
,c
15 !$acc loop vector shortloop
20 ! CHECK-LABEL: test_loop
21 ! CHECK: acc.loop vector
23 subroutine test_kernels_loop(a
, b
, c
)
25 real, dimension(100) :: a
,b
,c
27 !$acc kernels loop vector shortloop
32 ! CHECK-LABEL: test_kernels_loop
33 ! CHECK: acc.loop combined(kernels) vector
35 subroutine test_parallel_loop(a
, b
, c
)
37 real, dimension(100) :: a
,b
,c
39 !$acc parallel loop vector shortloop
44 ! CHECK-LABEL: test_parallel_loop
45 ! CHECK: acc.loop combined(parallel) vector
47 subroutine test_serial_loop(a
, b
, c
)
49 real, dimension(100) :: a
,b
,c
51 !$acc serial loop vector shortloop
56 ! CHECK-LABEL: test_serial_loop
57 ! CHECK: acc.loop combined(serial) vector