Files
llvm-project/flang/test/Semantics/simd-directive01.f90
Jack Styles f5e80c9858 [Flang] Add SIMD Compiler Directive (#192969)
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.
2026-04-22 14:54:37 +01:00

10 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