| 1 |
! RUN: %flang_fc1 -fdebug-dump-symbols %s | FileCheck %s |
| 2 |
! REQUIRES: target=powerpc{{.*}} |
| 3 |
|
| 4 |
! C: MainProgram scope: ppc_vec_types |
| 5 |
! CHECK-LABEL: MainProgram scope: ppc_vec_types size={{[0-9]*}} alignment={{[0-9]*}} |
| 6 |
program ppc_vec_types |
| 7 |
implicit none |
| 8 |
vector(integer(4)) :: vi |
| 9 |
vector(real(8)) :: vr |
| 10 |
vector(unsigned(2)) :: vu |
| 11 |
__vector_pair :: vp |
| 12 |
__vector_quad :: vq |
| 13 |
! CHECK-DAG: vi size=16 offset={{[0-9]*}}: ObjectEntity type: vector(integer(4)) |
| 14 |
! CHECK-DAG: vr size=16 offset={{[0-9]*}}: ObjectEntity type: vector(real(8)) |
| 15 |
! CHECK-DAG: vu size=16 offset={{[0-9]*}}: ObjectEntity type: vector(unsigned(2)) |
| 16 |
! CHECK-DAG: vp size=32 offset={{[0-9]*}}: ObjectEntity type: __vector_pair |
| 17 |
! CHECK-DAG: vq size=64 offset={{[0-9]*}}: ObjectEntity type: __vector_quad |
| 18 |
|
| 19 |
contains |
| 20 |
! CHECK-LABEL: Subprogram scope: test_vec_integer_func size={{[0-9]*}} alignment={{[0-9]*}} |
| 21 |
function test_vec_integer_func(arg1) |
| 22 |
vector(integer(4)) :: arg1 |
| 23 |
vector(integer(4)) :: test_vec_integer_func |
| 24 |
! CHECK-DAG: arg1 size=16 offset={{[0-9]*}}: ObjectEntity dummy type: vector(integer(4)) |
| 25 |
! CHECK-DAG: test_vec_integer_func size=16 offset={{[0-9]*}}: ObjectEntity funcResult type: vector(integer(4)) |
| 26 |
end function test_vec_integer_func |
| 27 |
|
| 28 |
! CHECK-LABEL: Subprogram scope: test_vec_real_func size={{[0-9]*}} alignment={{[0-9]*}} |
| 29 |
function test_vec_real_func(arg1) |
| 30 |
vector(real(8)) :: arg1 |
| 31 |
vector(real(8)) :: test_vec_real_func |
| 32 |
! CHECK-DAG: arg1 size=16 offset={{[0-9]*}}: ObjectEntity dummy type: vector(real(8)) |
| 33 |
! CHECK-DAG: test_vec_real_func size=16 offset={{[0-9]*}}: ObjectEntity funcResult type: vector(real(8)) |
| 34 |
end function test_vec_real_func |
| 35 |
|
| 36 |
! CHECK-LABEL: Subprogram scope: test_vec_unsigned_func |
| 37 |
function test_vec_unsigned_func(arg1) |
| 38 |
vector(unsigned(2)) :: arg1 |
| 39 |
vector(unsigned(2)) :: test_vec_unsigned_func |
| 40 |
! CHECK-DAG: arg1 size=16 offset={{[0-9]*}}: ObjectEntity dummy type: vector(unsigned(2)) |
| 41 |
! CHECK-DAG: test_vec_unsigned_func size=16 offset={{[0-9]*}}: ObjectEntity funcResult type: vector(unsigned(2)) |
| 42 |
end function test_vec_unsigned_func |
| 43 |
|
| 44 |
! CHECK-LABEL: Subprogram scope: test_vec_pair_func |
| 45 |
function test_vec_pair_func(arg1) |
| 46 |
__vector_pair :: arg1 |
| 47 |
__vector_pair :: test_vec_pair_func |
| 48 |
! CHECK-DAG: arg1 size=32 offset={{[0-9]*}}: ObjectEntity dummy type: __vector_pair |
| 49 |
! CHECK-DAG: test_vec_pair_func size=32 offset={{[0-9]*}}: ObjectEntity funcResult type: __vector_pair |
| 50 |
end function test_vec_pair_func |
| 51 |
|
| 52 |
! CHECK-LABEL: Subprogram scope: test_vec_quad_func |
| 53 |
function test_vec_quad_func(arg1) |
| 54 |
__vector_quad :: arg1 |
| 55 |
__vector_quad :: test_vec_quad_func |
| 56 |
! CHECK-DAG: arg1 size=64 offset={{[0-9]*}}: ObjectEntity dummy type: __vector_quad |
| 57 |
! CHECK-DAG: test_vec_quad_func size=64 offset={{[0-9]*}}: ObjectEntity funcResult type: __vector_quad |
| 58 |
end function test_vec_quad_func |
| 59 |
|
| 60 |
end program ppc_vec_types |