Debian Codegraph @

flang/test/Driver/fveclib-codegen.f90

raw
1 ! test that -fveclib= is passed to the backend
2 ! -target aarch64 so that ArmPL is available
3 ! RUN: %flang -S -Ofast -fveclib=LIBMVEC -o - %s | FileCheck %s
4 ! RUN: %flang -S -Ofast -fveclib=NoLibrary -o - %s | FileCheck %s --check-prefix=NOLIB
5
6 subroutine sb(a, b)
7 real :: a(:), b(:)
8 integer :: i
9 do i=1,100
10 ! check that we used a vectorized call to powf()
11 ! CHECK: _ZGVbN4vv_powf
12 ! NOLIB: powf
13 a(i) = a(i) ** b(i)
14 end do
15 end subroutine