Similar to #192674, this adds support for the SIMD Compiler Directive, previously supported by legacy Fortran frontends such as classic-flang. This operates in the same way as `VECTORALWAYS`, marking a DO loop to be vectorised by the LLVM Backend. The missing support was highlighted while building an opensource benchmark, as build warnings were indicating that this compiler directive was being ignored.
9 lines
252 B
Fortran
9 lines
252 B
Fortran
! Check that appropriate errors are given when the SIMD Directive is used
|
|
! with no DO loop following
|
|
|
|
! RUN: %python %S/test_errors.py %s %flang -Werror
|
|
|
|
subroutine test()
|
|
!WARNING: A DO loop must follow the SIMD directive
|
|
!DIR$ SIMD
|
|
end subroutine
|