From c0002a675a92e76d2f326bf4629d8e4127a0c9da Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Sat, 5 Oct 2024 14:17:49 +0200 Subject: Implement MAXLOC and MINLOC for unsigned. gcc/fortran/ChangeLog: * check.cc (gfc_check_minloc_maxloc): Handle BT_UNSIGNED. * trans-intrinsic.cc (gfc_conv_intrinsic_minmaxloc): Likewise. * gfortran.texi: Document MAXLOC and MINLOC for UNSIGNED. libgfortran/ChangeLog: * Makefile.am: Add files for unsigned MINLOC and MAXLOC. * Makefile.in: Regenerated. * gfortran.map: Add files for unsigned MINLOC and MAXLOC. * generated/maxloc0_16_m1.c: New file. * generated/maxloc0_16_m16.c: New file. * generated/maxloc0_16_m2.c: New file. * generated/maxloc0_16_m4.c: New file. * generated/maxloc0_16_m8.c: New file. * generated/maxloc0_4_m1.c: New file. * generated/maxloc0_4_m16.c: New file. * generated/maxloc0_4_m2.c: New file. * generated/maxloc0_4_m4.c: New file. * generated/maxloc0_4_m8.c: New file. * generated/maxloc0_8_m1.c: New file. * generated/maxloc0_8_m16.c: New file. * generated/maxloc0_8_m2.c: New file. * generated/maxloc0_8_m4.c: New file. * generated/maxloc0_8_m8.c: New file. * generated/maxloc1_16_m1.c: New file. * generated/maxloc1_16_m2.c: New file. * generated/maxloc1_16_m4.c: New file. * generated/maxloc1_16_m8.c: New file. * generated/maxloc1_4_m1.c: New file. * generated/maxloc1_4_m16.c: New file. * generated/maxloc1_4_m2.c: New file. * generated/maxloc1_4_m4.c: New file. * generated/maxloc1_4_m8.c: New file. * generated/maxloc1_8_m1.c: New file. * generated/maxloc1_8_m16.c: New file. * generated/maxloc1_8_m2.c: New file. * generated/maxloc1_8_m4.c: New file. * generated/maxloc1_8_m8.c: New file. * generated/minloc0_16_m1.c: New file. * generated/minloc0_16_m16.c: New file. * generated/minloc0_16_m2.c: New file. * generated/minloc0_16_m4.c: New file. * generated/minloc0_16_m8.c: New file. * generated/minloc0_4_m1.c: New file. * generated/minloc0_4_m16.c: New file. * generated/minloc0_4_m2.c: New file. * generated/minloc0_4_m4.c: New file. * generated/minloc0_4_m8.c: New file. * generated/minloc0_8_m1.c: New file. * generated/minloc0_8_m16.c: New file. * generated/minloc0_8_m2.c: New file. * generated/minloc0_8_m4.c: New file. * generated/minloc0_8_m8.c: New file. * generated/minloc1_16_m1.c: New file. * generated/minloc1_16_m16.c: New file. * generated/minloc1_16_m2.c: New file. * generated/minloc1_16_m4.c: New file. * generated/minloc1_16_m8.c: New file. * generated/minloc1_4_m1.c: New file. * generated/minloc1_4_m16.c: New file. * generated/minloc1_4_m2.c: New file. * generated/minloc1_4_m4.c: New file. * generated/minloc1_4_m8.c: New file. * generated/minloc1_8_m1.c: New file. * generated/minloc1_8_m16.c: New file. * generated/minloc1_8_m2.c: New file. * generated/minloc1_8_m4.c: New file. * generated/minloc1_8_m8.c: New file. gcc/testsuite/ChangeLog: * gfortran.dg/unsigned_35.f90: New test. --- libgfortran/gfortran.map | 180 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 180 insertions(+) (limited to 'libgfortran/gfortran.map') diff --git a/libgfortran/gfortran.map b/libgfortran/gfortran.map index ebde691..f58edc5 100644 --- a/libgfortran/gfortran.map +++ b/libgfortran/gfortran.map @@ -1817,4 +1817,184 @@ GFORTRAN_15 { _gfortran_smaxval_m2; _gfortran_smaxval_m4; _gfortran_smaxval_m8; + _gfortran_maxloc0_16_m16; + _gfortran_maxloc0_16_m1; + _gfortran_maxloc0_16_m2; + _gfortran_maxloc0_16_m4; + _gfortran_maxloc0_16_m8; + _gfortran_maxloc0_4_m16; + _gfortran_maxloc0_4_m1; + _gfortran_maxloc0_4_m2; + _gfortran_maxloc0_4_m4; + _gfortran_maxloc0_4_m8; + _gfortran_maxloc0_8_m16; + _gfortran_maxloc0_8_m1; + _gfortran_maxloc0_8_m2; + _gfortran_maxloc0_8_m4; + _gfortran_maxloc0_8_m8; + _gfortran_maxloc1_16_m16; + _gfortran_maxloc1_16_m1; + _gfortran_maxloc1_16_m2; + _gfortran_maxloc1_16_m4; + _gfortran_maxloc1_16_m8; + _gfortran_maxloc1_4_m16; + _gfortran_maxloc1_4_m1; + _gfortran_maxloc1_4_m2; + _gfortran_maxloc1_4_m4; + _gfortran_maxloc1_4_m8; + _gfortran_maxloc1_8_m16; + _gfortran_maxloc1_8_m1; + _gfortran_maxloc1_8_m2; + _gfortran_maxloc1_8_m4; + _gfortran_maxloc1_8_m8; + _gfortran_mmaxloc0_16_m16; + _gfortran_mmaxloc0_16_m1; + _gfortran_mmaxloc0_16_m2; + _gfortran_mmaxloc0_16_m4; + _gfortran_mmaxloc0_16_m8; + _gfortran_mmaxloc0_4_m16; + _gfortran_mmaxloc0_4_m1; + _gfortran_mmaxloc0_4_m2; + _gfortran_mmaxloc0_4_m4; + _gfortran_mmaxloc0_4_m8; + _gfortran_mmaxloc0_8_m16; + _gfortran_mmaxloc0_8_m1; + _gfortran_mmaxloc0_8_m2; + _gfortran_mmaxloc0_8_m4; + _gfortran_mmaxloc0_8_m8; + _gfortran_mmaxloc1_16_m16; + _gfortran_mmaxloc1_16_m1; + _gfortran_mmaxloc1_16_m2; + _gfortran_mmaxloc1_16_m4; + _gfortran_mmaxloc1_16_m8; + _gfortran_mmaxloc1_4_m16; + _gfortran_mmaxloc1_4_m1; + _gfortran_mmaxloc1_4_m2; + _gfortran_mmaxloc1_4_m4; + _gfortran_mmaxloc1_4_m8; + _gfortran_mmaxloc1_8_m16; + _gfortran_mmaxloc1_8_m1; + _gfortran_mmaxloc1_8_m2; + _gfortran_mmaxloc1_8_m4; + _gfortran_mmaxloc1_8_m8; + _gfortran_smaxloc0_16_m16; + _gfortran_smaxloc0_16_m1; + _gfortran_smaxloc0_16_m2; + _gfortran_smaxloc0_16_m4; + _gfortran_smaxloc0_16_m8; + _gfortran_smaxloc0_4_m16; + _gfortran_smaxloc0_4_m1; + _gfortran_smaxloc0_4_m2; + _gfortran_smaxloc0_4_m4; + _gfortran_smaxloc0_4_m8; + _gfortran_smaxloc0_8_m16; + _gfortran_smaxloc0_8_m1; + _gfortran_smaxloc0_8_m2; + _gfortran_smaxloc0_8_m4; + _gfortran_smaxloc0_8_m8; + _gfortran_smaxloc1_16_m16; + _gfortran_smaxloc1_16_m1; + _gfortran_smaxloc1_16_m2; + _gfortran_smaxloc1_16_m4; + _gfortran_smaxloc1_16_m8; + _gfortran_smaxloc1_4_m16; + _gfortran_smaxloc1_4_m1; + _gfortran_smaxloc1_4_m2; + _gfortran_smaxloc1_4_m4; + _gfortran_smaxloc1_4_m8; + _gfortran_smaxloc1_8_m16; + _gfortran_smaxloc1_8_m1; + _gfortran_smaxloc1_8_m2; + _gfortran_smaxloc1_8_m4; + _gfortran_smaxloc1_8_m8; + _gfortran_minloc0_16_m16; + _gfortran_minloc0_16_m1; + _gfortran_minloc0_16_m2; + _gfortran_minloc0_16_m4; + _gfortran_minloc0_16_m8; + _gfortran_minloc0_4_m16; + _gfortran_minloc0_4_m1; + _gfortran_minloc0_4_m2; + _gfortran_minloc0_4_m4; + _gfortran_minloc0_4_m8; + _gfortran_minloc0_8_m16; + _gfortran_minloc0_8_m1; + _gfortran_minloc0_8_m2; + _gfortran_minloc0_8_m4; + _gfortran_minloc0_8_m8; + _gfortran_minloc1_16_m16; + _gfortran_minloc1_16_m1; + _gfortran_minloc1_16_m2; + _gfortran_minloc1_16_m4; + _gfortran_minloc1_16_m8; + _gfortran_minloc1_4_m16; + _gfortran_minloc1_4_m1; + _gfortran_minloc1_4_m2; + _gfortran_minloc1_4_m4; + _gfortran_minloc1_4_m8; + _gfortran_minloc1_8_m16; + _gfortran_minloc1_8_m1; + _gfortran_minloc1_8_m2; + _gfortran_minloc1_8_m4; + _gfortran_minloc1_8_m8; + _gfortran_mminloc0_16_m16; + _gfortran_mminloc0_16_m1; + _gfortran_mminloc0_16_m2; + _gfortran_mminloc0_16_m4; + _gfortran_mminloc0_16_m8; + _gfortran_mminloc0_4_m16; + _gfortran_mminloc0_4_m1; + _gfortran_mminloc0_4_m2; + _gfortran_mminloc0_4_m4; + _gfortran_mminloc0_4_m8; + _gfortran_mminloc0_8_m16; + _gfortran_mminloc0_8_m1; + _gfortran_mminloc0_8_m2; + _gfortran_mminloc0_8_m4; + _gfortran_mminloc0_8_m8; + _gfortran_mminloc1_16_m16; + _gfortran_mminloc1_16_m1; + _gfortran_mminloc1_16_m2; + _gfortran_mminloc1_16_m4; + _gfortran_mminloc1_16_m8; + _gfortran_mminloc1_4_m16; + _gfortran_mminloc1_4_m1; + _gfortran_mminloc1_4_m2; + _gfortran_mminloc1_4_m4; + _gfortran_mminloc1_4_m8; + _gfortran_mminloc1_8_m16; + _gfortran_mminloc1_8_m1; + _gfortran_mminloc1_8_m2; + _gfortran_mminloc1_8_m4; + _gfortran_mminloc1_8_m8; + _gfortran_sminloc0_16_m16; + _gfortran_sminloc0_16_m1; + _gfortran_sminloc0_16_m2; + _gfortran_sminloc0_16_m4; + _gfortran_sminloc0_16_m8; + _gfortran_sminloc0_4_m16; + _gfortran_sminloc0_4_m1; + _gfortran_sminloc0_4_m2; + _gfortran_sminloc0_4_m4; + _gfortran_sminloc0_4_m8; + _gfortran_sminloc0_8_m16; + _gfortran_sminloc0_8_m1; + _gfortran_sminloc0_8_m2; + _gfortran_sminloc0_8_m4; + _gfortran_sminloc0_8_m8; + _gfortran_sminloc1_16_m16; + _gfortran_sminloc1_16_m1; + _gfortran_sminloc1_16_m2; + _gfortran_sminloc1_16_m4; + _gfortran_sminloc1_16_m8; + _gfortran_sminloc1_4_m16; + _gfortran_sminloc1_4_m1; + _gfortran_sminloc1_4_m2; + _gfortran_sminloc1_4_m4; + _gfortran_sminloc1_4_m8; + _gfortran_sminloc1_8_m16; + _gfortran_sminloc1_8_m1; + _gfortran_sminloc1_8_m2; + _gfortran_sminloc1_8_m4; + _gfortran_sminloc1_8_m8; } GFORTRAN_14; -- cgit v1.1