From 3927515123aa0b8a715919bf090a7e6c1a26e0ab Mon Sep 17 00:00:00 2001 From: tkoenig Date: Mon, 15 May 2017 20:06:06 +0000 Subject: 2017-05-15 Thomas Koenig PR fortran/80765 * m4/matmul_internal.m4: Set bystride to correct value in vector-matrix multiplicatin for later calculation of buffer size. * generated/matmul_c10.c: Regenerated. * generated/matmul_c16.c: Regenerated. * generated/matmul_c4.c: Regenerated. * generated/matmul_c8.c: Regenerated. * generated/matmul_i1.c: Regenerated. * generated/matmul_i16.c: Regenerated. * generated/matmul_i2.c: Regenerated. * generated/matmul_i4.c: Regenerated. * generated/matmul_i8.c: Regenerated. * generated/matmul_r10.c: Regenerated. * generated/matmul_r16.c: Regenerated. * generated/matmul_r4.c: Regenerated. * generated/matmul_r8.c: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248074 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/ChangeLog | 20 ++++++++++++++++++++ libgfortran/generated/matmul_c10.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_c16.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_c4.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_c8.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_i1.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_i16.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_i2.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_i4.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_i8.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_r10.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_r16.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_r4.c | 30 +++++++++++++++--------------- libgfortran/generated/matmul_r8.c | 30 +++++++++++++++--------------- libgfortran/m4/matmul_internal.m4 | 6 +++--- 15 files changed, 218 insertions(+), 198 deletions(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 6b7da0a299a..8a5d8033f2c 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,23 @@ +2017-05-15 Thomas Koenig + + PR fortran/80765 + * m4/matmul_internal.m4: Set bystride to correct value in + vector-matrix multiplicatin for later calculation of buffer + size. + * generated/matmul_c10.c: Regenerated. + * generated/matmul_c16.c: Regenerated. + * generated/matmul_c4.c: Regenerated. + * generated/matmul_c8.c: Regenerated. + * generated/matmul_i1.c: Regenerated. + * generated/matmul_i16.c: Regenerated. + * generated/matmul_i2.c: Regenerated. + * generated/matmul_i4.c: Regenerated. + * generated/matmul_i8.c: Regenerated. + * generated/matmul_r10.c: Regenerated. + * generated/matmul_r16.c: Regenerated. + * generated/matmul_r4.c: Regenerated. + * generated/matmul_r8.c: Regenerated. + 2017-05-12 Thomas Schwinge * runtime/environ.c (weak_secure_getenv): Fix "__secure_gettime" diff --git a/libgfortran/generated/matmul_c10.c b/libgfortran/generated/matmul_c10.c index e247e8e6817..dbe3d3a82f1 100644 --- a/libgfortran/generated/matmul_c10.c +++ b/libgfortran/generated/matmul_c10.c @@ -222,9 +222,9 @@ matmul_c10_avx (gfc_array_c10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_c10_avx2 (gfc_array_c10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_c10_avx512f (gfc_array_c10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_c10_vanilla (gfc_array_c10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_c10 (gfc_array_c10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_c16.c b/libgfortran/generated/matmul_c16.c index aa27f61ec95..36c8747f895 100644 --- a/libgfortran/generated/matmul_c16.c +++ b/libgfortran/generated/matmul_c16.c @@ -222,9 +222,9 @@ matmul_c16_avx (gfc_array_c16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_c16_avx2 (gfc_array_c16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_c16_avx512f (gfc_array_c16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_c16_vanilla (gfc_array_c16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_c16 (gfc_array_c16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_c4.c b/libgfortran/generated/matmul_c4.c index 3b2cd64ab4c..79343dde750 100644 --- a/libgfortran/generated/matmul_c4.c +++ b/libgfortran/generated/matmul_c4.c @@ -222,9 +222,9 @@ matmul_c4_avx (gfc_array_c4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_c4_avx2 (gfc_array_c4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_c4_avx512f (gfc_array_c4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_c4_vanilla (gfc_array_c4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_c4 (gfc_array_c4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_c8.c b/libgfortran/generated/matmul_c8.c index 89153b2c9cb..0307d3ff559 100644 --- a/libgfortran/generated/matmul_c8.c +++ b/libgfortran/generated/matmul_c8.c @@ -222,9 +222,9 @@ matmul_c8_avx (gfc_array_c8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_c8_avx2 (gfc_array_c8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_c8_avx512f (gfc_array_c8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_c8_vanilla (gfc_array_c8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_c8 (gfc_array_c8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_i1.c b/libgfortran/generated/matmul_i1.c index 7a25d890fdd..8cda1c322ae 100644 --- a/libgfortran/generated/matmul_i1.c +++ b/libgfortran/generated/matmul_i1.c @@ -222,9 +222,9 @@ matmul_i1_avx (gfc_array_i1 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_i1_avx2 (gfc_array_i1 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_i1_avx512f (gfc_array_i1 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_i1_vanilla (gfc_array_i1 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_i1 (gfc_array_i1 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_i16.c b/libgfortran/generated/matmul_i16.c index a8640047bdd..06035225d99 100644 --- a/libgfortran/generated/matmul_i16.c +++ b/libgfortran/generated/matmul_i16.c @@ -222,9 +222,9 @@ matmul_i16_avx (gfc_array_i16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_i16_avx2 (gfc_array_i16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_i16_avx512f (gfc_array_i16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_i16_vanilla (gfc_array_i16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_i16 (gfc_array_i16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_i2.c b/libgfortran/generated/matmul_i2.c index 4b8b9f2b3bb..93316cb34ad 100644 --- a/libgfortran/generated/matmul_i2.c +++ b/libgfortran/generated/matmul_i2.c @@ -222,9 +222,9 @@ matmul_i2_avx (gfc_array_i2 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_i2_avx2 (gfc_array_i2 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_i2_avx512f (gfc_array_i2 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_i2_vanilla (gfc_array_i2 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_i2 (gfc_array_i2 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_i4.c b/libgfortran/generated/matmul_i4.c index 19f7ad9e3d0..475b214ae79 100644 --- a/libgfortran/generated/matmul_i4.c +++ b/libgfortran/generated/matmul_i4.c @@ -222,9 +222,9 @@ matmul_i4_avx (gfc_array_i4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_i4_avx2 (gfc_array_i4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_i4_avx512f (gfc_array_i4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_i4_vanilla (gfc_array_i4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_i4 (gfc_array_i4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_i8.c b/libgfortran/generated/matmul_i8.c index cbfad6c6bcf..d29a4b48c06 100644 --- a/libgfortran/generated/matmul_i8.c +++ b/libgfortran/generated/matmul_i8.c @@ -222,9 +222,9 @@ matmul_i8_avx (gfc_array_i8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_i8_avx2 (gfc_array_i8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_i8_avx512f (gfc_array_i8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_i8_vanilla (gfc_array_i8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_i8 (gfc_array_i8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_r10.c b/libgfortran/generated/matmul_r10.c index 46bc7feec6b..f1885a434c2 100644 --- a/libgfortran/generated/matmul_r10.c +++ b/libgfortran/generated/matmul_r10.c @@ -222,9 +222,9 @@ matmul_r10_avx (gfc_array_r10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_r10_avx2 (gfc_array_r10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_r10_avx512f (gfc_array_r10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_r10_vanilla (gfc_array_r10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_r10 (gfc_array_r10 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_r16.c b/libgfortran/generated/matmul_r16.c index fc2b37b48c1..a7aa44ff1b2 100644 --- a/libgfortran/generated/matmul_r16.c +++ b/libgfortran/generated/matmul_r16.c @@ -222,9 +222,9 @@ matmul_r16_avx (gfc_array_r16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_r16_avx2 (gfc_array_r16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_r16_avx512f (gfc_array_r16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_r16_vanilla (gfc_array_r16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_r16 (gfc_array_r16 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_r4.c b/libgfortran/generated/matmul_r4.c index 53e57d64f5d..13530252032 100644 --- a/libgfortran/generated/matmul_r4.c +++ b/libgfortran/generated/matmul_r4.c @@ -222,9 +222,9 @@ matmul_r4_avx (gfc_array_r4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_r4_avx2 (gfc_array_r4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_r4_avx512f (gfc_array_r4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_r4_vanilla (gfc_array_r4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_r4 (gfc_array_r4 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/generated/matmul_r8.c b/libgfortran/generated/matmul_r8.c index 132e536169d..a4af0008518 100644 --- a/libgfortran/generated/matmul_r8.c +++ b/libgfortran/generated/matmul_r8.c @@ -222,9 +222,9 @@ matmul_r8_avx (gfc_array_r8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -774,9 +774,9 @@ matmul_r8_avx2 (gfc_array_r8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1326,9 +1326,9 @@ matmul_r8_avx512f (gfc_array_r8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -1874,9 +1874,9 @@ matmul_r8_vanilla (gfc_array_r8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else @@ -2480,9 +2480,9 @@ matmul_r8 (gfc_array_r8 * const restrict retarray, bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else diff --git a/libgfortran/m4/matmul_internal.m4 b/libgfortran/m4/matmul_internal.m4 index 5682b78ffe9..fdc93e74663 100644 --- a/libgfortran/m4/matmul_internal.m4 +++ b/libgfortran/m4/matmul_internal.m4 @@ -138,9 +138,9 @@ sinclude(`matmul_asm_'rtype_code`.m4')dnl bxstride = GFC_DESCRIPTOR_STRIDE(b,0); /* bystride should never be used for 1-dimensional b. - in case it is we want it to cause a segfault, rather than - an incorrect result. */ - bystride = 0xDEADBEEF; + The value is only used for calculation of the + memory by the buffer. */ + bystride = 256; ycount = 1; } else -- cgit v1.2.1