f0e6bc138628cb587ee92f62214e48667db3538c
[gcc.git] / gcc / testsuite / gfortran.dg / simd-builtins-2.f90
1 ! { dg-do compile { target { i?86-*-linux* x86_64-*-linux* } } }
2 ! { dg-additional-options "-msse2 -nostdinc -Ofast -fdump-tree-optimized" }
3
4 program test_overloaded_intrinsic
5 real(4) :: x4(3200), y4(3200)
6 real(8) :: x8(3200), y8(3200)
7
8 ! this should be using simd clone
9 y4 = sin(x4)
10 print *, y4
11
12 ! this should not be using simd clone
13 y4 = sin(x8)
14 print *, y8
15 end
16
17 ! { dg-final { scan-tree-dump "__builtin_sinf" "optimized" } } */
18 ! { dg-final { scan-tree-dump "__builtin_sin" "optimized" } } */
19 ! { dg-final { scan-tree-dump-not "simdclone" "optimized" } } */
20 ! { dg-final { scan-assembler-not "call.*_ZGVbN4v_sinf" } }