[clang][bytecode] Implement __builtin_reduce_mul (#118287)
[llvm-project.git] / flang / test / Driver / fveclib-codegen.f90
blob3720b9e597f5b5fe2f146ec8dd284ce334a432e7
1 ! test that -fveclib= is passed to the backend
2 ! RUN: %if aarch64-registered-target %{ %flang -S -Ofast -target aarch64-unknown-linux-gnu -fveclib=LIBMVEC -o - %s | FileCheck %s %}
3 ! RUN: %if x86-registered-target %{ %flang -S -Ofast -target x86_64-unknown-linux-gnu -fveclib=LIBMVEC -o - %s | FileCheck %s %}
4 ! RUN: %flang -S -Ofast -fveclib=NoLibrary -o - %s | FileCheck %s --check-prefix=NOLIB
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