re PR libfortran/32972 (performance of pack/unpack)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 23 Mar 2008 22:19:19 +0000 (22:19 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 23 Mar 2008 22:19:19 +0000 (22:19 +0000)
commit3478bba4660b29dc76202c955b709bf484dacf1f
treeb07d6c628b5ec47255fa6723cf727cb89ace575e
parent2ff8644d33a8b9f3ca7c7c870c011a07da852ab3
re PR libfortran/32972 (performance of pack/unpack)

2007-03-23  Thomas Koenig  <tkoenig@gcc.gnu.org

PR libfortran/32972
* Makefile.am:  Add new variable, i_unpack_c, containing
unpack_i1.c, unpack_i2.c, unpack_i4.c, unpack_i8.c,
unpack_i16.c, unpack_r4.c, unpack_r8.c, unpack_r10.c,
unpack_r16.c, unpack_c4.c, unpack_c8.c, unpack_c10.c
and unpack_c16.c
Add i_unpack_c to gfor_built_src.
Add rule to generate i_unpack_c from m4/unpack.m4.
* Makefile.in:  Regenerated.
* libgfortran.h: Add prototypes for unpack0_i1, unpack0_i2,
unpack0_i4, unpack0_i8, unpack0_i16, unpack0_r4, unpack0_r8,
unpack0_r10, unpack0_r16, unpack0_c4, unpack0_c8, unpack0_c10,
unpack0_c16, unpack1_i1, unpack1_i2, unpack1_i4, unpack1_i8,
unpack1_i16, unpack1_r4, unpack1_r8, unpack1_r10, unpack1_r16,
unpack1_c4, unpack1_c8, unpack1_c10 and unpack1_c16.
* intrinsics/pack_generic.c (unpack1):  Add calls to specific
unpack1 functions.
(unpack0):  Add calls to specific unpack0 functions.
* m4/unpack.m4:  New file.
* generated/unpack_i1.c:  New file.
* generated/unpack_i2.c:  New file.
* generated/unpack_i4.c:  New file.
* generated/unpack_i8.c:  New file.
* generated/unpack_i16.c:  New file.
* generated/unpack_r4.c:  New file.
* generated/unpack_r8.c:  New file.
* generated/unpack_r10.c:  New file.
* generated/unpack_r16.c:  New file.
* generated/unpack_c4.c:  New file.
* generated/unpack_c8.c:  New file.
* generated/unpack_c10.c:  New file.
* generated/unpack_c16.c:  New file.

2007-03-23  Thomas Koenig  <tkoenig@gcc.gnu.org

PR libfortran/32972
* gfortran.dg/intrinsic_unpack_1.f90:  New test case.
* gfortran.dg/intrinsic_unpack_2.f90:  New test case.
* gfortran.dg/intrinsic_unpack_3.f90:  New test case.

From-SVN: r133469
23 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/intrinsic_unpack_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/intrinsic_unpack_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/intrinsic_unpack_3.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/Makefile.am
libgfortran/Makefile.in
libgfortran/generated/unpack_c10.c [new file with mode: 0644]
libgfortran/generated/unpack_c16.c [new file with mode: 0644]
libgfortran/generated/unpack_c4.c [new file with mode: 0644]
libgfortran/generated/unpack_c8.c [new file with mode: 0644]
libgfortran/generated/unpack_i1.c [new file with mode: 0644]
libgfortran/generated/unpack_i16.c [new file with mode: 0644]
libgfortran/generated/unpack_i2.c [new file with mode: 0644]
libgfortran/generated/unpack_i4.c [new file with mode: 0644]
libgfortran/generated/unpack_i8.c [new file with mode: 0644]
libgfortran/generated/unpack_r10.c [new file with mode: 0644]
libgfortran/generated/unpack_r16.c [new file with mode: 0644]
libgfortran/generated/unpack_r4.c [new file with mode: 0644]
libgfortran/generated/unpack_r8.c [new file with mode: 0644]
libgfortran/intrinsics/unpack_generic.c
libgfortran/libgfortran.h
libgfortran/m4/unpack.m4 [new file with mode: 0644]