gcc/libgfortran/m4
Harald Anlauf cd6cd6aed1 PR libfortran/97063 - Wrong result for vector (step size is negative) * matrix
The MATMUL intrinsic provided a wrong result for rank-1 times rank-2 array
when a negative stride was used for addressing the elements of the rank-1
array, because a check on strides was erroneously placed before the check
on the rank.  Interchange order of checks.

libgfortran/ChangeLog:

	* m4/matmul_internal.m4: Move check for rank-1 times rank-2 before
	checks on strides for rank-2 times rank-2.
	* generated/matmul_c10.c: Regenerated.
	* generated/matmul_c16.c: Likewise.
	* generated/matmul_c4.c: Likewise.
	* generated/matmul_c8.c: Likewise.
	* generated/matmul_i1.c: Likewise.
	* generated/matmul_i16.c: Likewise.
	* generated/matmul_i2.c: Likewise.
	* generated/matmul_i4.c: Likewise.
	* generated/matmul_i8.c: Likewise.
	* generated/matmul_r10.c: Likewise.
	* generated/matmul_r16.c: Likewise.
	* generated/matmul_r4.c: Likewise.
	* generated/matmul_r8.c: Likewise.
	* generated/matmulavx128_c10.c: Likewise.
	* generated/matmulavx128_c16.c: Likewise.
	* generated/matmulavx128_c4.c: Likewise.
	* generated/matmulavx128_c8.c: Likewise.
	* generated/matmulavx128_i1.c: Likewise.
	* generated/matmulavx128_i16.c: Likewise.
	* generated/matmulavx128_i2.c: Likewise.
	* generated/matmulavx128_i4.c: Likewise.
	* generated/matmulavx128_i8.c: Likewise.
	* generated/matmulavx128_r10.c: Likewise.
	* generated/matmulavx128_r16.c: Likewise.
	* generated/matmulavx128_r4.c: Likewise.
	* generated/matmulavx128_r8.c: Likewise.

gcc/testsuite/ChangeLog:

	* gfortran.dg/matmul_20.f90: New test.
2020-10-18 20:15:26 +02:00
..
all.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
any.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
bessel.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
count.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
cshift0.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
cshift1.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
cshift1a.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
eoshift1.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
eoshift3.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
findloc0.m4 re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2018-10-28 11:05:05 +00:00
findloc0s.m4 re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2018-10-28 11:05:05 +00:00
findloc1.m4 re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2018-10-28 11:05:05 +00:00
findloc1s.m4 re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2018-10-28 11:05:05 +00:00
findloc2s.m4 re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2018-10-28 11:05:05 +00:00
head.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
iall.m4 PR fortran/96890 - Wrong answer with intrinsic IALL 2020-09-03 20:33:14 +02:00
iany.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
ifindloc0.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
ifindloc1.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
ifindloc2.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
iforeach-s2.m4 re PR fortran/82995 (Segmentation fault passing optional argument to intrinsic sum function) 2018-12-31 14:59:46 +00:00
iforeach-s.m4 re PR fortran/82995 (Segmentation fault passing optional argument to intrinsic sum function) 2018-12-31 14:59:46 +00:00
iforeach.m4 re PR fortran/82995 (Segmentation fault passing optional argument to intrinsic sum function) 2018-12-31 14:59:46 +00:00
ifunction_logical.m4 re PR fortran/85816 (nested spread fails with "Integer overflow in xmallocarray") 2018-06-01 20:20:35 +00:00
ifunction-s2.m4 re PR fortran/82995 (Segmentation fault passing optional argument to intrinsic sum function) 2018-12-31 14:59:46 +00:00
ifunction-s.m4 re PR fortran/82995 (Segmentation fault passing optional argument to intrinsic sum function) 2018-12-31 14:59:46 +00:00
ifunction.m4 re PR fortran/82995 (Segmentation fault passing optional argument to intrinsic sum function) 2018-12-31 14:59:46 +00:00
in_pack.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
in_unpack.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
iparity.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
iparm.m4 re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) 2018-10-28 11:05:05 +00:00
matmul_internal.m4 PR libfortran/97063 - Wrong result for vector (step size is negative) * matrix 2020-10-18 20:15:26 +02:00
matmul.m4 libgfortran: Use __builtin_cpu_is/__builtin_cpu_supports 2020-05-21 03:54:47 -07:00
matmulavx128.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
matmull.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxloc0.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxloc0s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxloc1.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxloc1s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxloc2s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxval0s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxval1s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
maxval.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minloc0.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minloc0s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minloc1.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minloc1s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minloc2s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minval0s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minval1s.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
minval.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
misc_specifics.m4
mtype.m4
norm2.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
pack.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
parity.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
pow.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
product.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
reshape.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
shape.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
specific2.m4
specific.m4
spread.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
sum.m4 Update copyright years. 2020-01-01 12:51:42 +01:00
types.m4
unpack.m4 libgfortran/m4/unpack.m4: Silence -Wmaybe-uninitialized 2020-09-28 23:10:31 +02:00