Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/ppc-fortran/pr102767.f90

raw
1 ! { dg-options "-mvsx -O2 -ftree-vectorize -mno-efficient-unaligned-vsx" }
2 ! { dg-require-effective-target powerpc_vsx }
3
4 INTERFACE
5 FUNCTION elemental_mult (a, b, c)
6 type(*), DIMENSION(..) :: a, b, c
7 END
8 END INTERFACE
9
10 allocatable z
11 integer, dimension(2,2) :: a, b
12 call test_CFI_address
13 contains
14 subroutine test_CFI_address
15 if (elemental_mult (z, x, y) .ne. 0) stop
16 a = reshape ([4,3,2,1], [2,2])
17 b = reshape ([2,3,4,5], [2,2])
18 if (elemental_mult (i, a, b) .ne. 0) stop
19 end
20 end
21