public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
@ 2020-09-16  1:00 xin.liu@compiler-dev.com
  2020-09-18 20:42 ` [Bug fortran/97063] " anlauf at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: xin.liu@compiler-dev.com @ 2020-09-16  1:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

            Bug ID: 97063
           Summary: [ MATMUL intrinsic] The value of result is wrong when
                    vector (step size is negative) * matrix
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xin.liu@compiler-dev.com
  Target Milestone: ---

Consider the following Fortran program:
program p
    implicit none
    real(kind=16), dimension(6) :: arr1
    real(kind=16), dimension(6, 10) :: arr2
    real(kind=16), dimension(10) :: arr3, arr6
    real(kind=16), dimension(3) :: arr4
    real(kind=16), dimension(3, 10) :: arr5
    integer :: i, j
    data arr1 /0.0_16, 1.0_16, 2.0_16, 3.0_16, 4.0_16, 5.0_16/
    do i = 1, 6
       do j = 1,10
          arr2(i, j) = (i + j) * 1.0_16
       end do
    end do
    write(*,*) "--arr3--:"
    arr3 = matmul(arr1(5:1:-2),arr2(5:1:-2, :))
    write(*,'(5F5.1)') arr3
    write(*,*) "--arr4--:"
    arr4 = arr1(5:1:-2)
    write(*,'(5F5.1)') arr4
    write(*,*) "--arr6--:"
    arr6 = matmul(arr4, arr2(5:1:-2, :))
    write(*,'(5F5.1)') arr6
end program

Compiled with gfortran 10.1.0, the program prints:

 --arr3--:
 44.0 53.0 62.0 71.0 80.0
 89.0 98.0107.0116.0125.0
 --arr4--:
  4.0  2.0  0.0
 --arr6--:
 32.0 38.0 44.0 50.0 56.0
 62.0 68.0 74.0 80.0 86.0

As you can see,the value of arr3 is differnet with arr6.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug fortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
@ 2020-09-18 20:42 ` anlauf at gcc dot gnu.org
  2020-09-18 20:49 ` anlauf at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-09-18 20:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |10.2.1, 11.0, 7.4.1, 8.4.1,
                   |                            |9.3.1
                 CC|                            |anlauf at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-09-18
     Ever confirmed|0                           |1
           Priority|P3                          |P4

--- Comment #1 from anlauf at gcc dot gnu.org ---
Confirmed.  This happens with all real kinds, not only kind=16.

The output is easier to read when replacing

  write(*,'(5F5.1)') arr3

by

  write(*,'(10F5.1)') arr3

etc.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug fortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
  2020-09-18 20:42 ` [Bug fortran/97063] " anlauf at gcc dot gnu.org
@ 2020-09-18 20:49 ` anlauf at gcc dot gnu.org
  2020-09-18 22:19 ` jvdelisle at charter dot net
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-09-18 20:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

--- Comment #2 from anlauf at gcc dot gnu.org ---
Interestingly, the bug "disappears" if frontend optimization is enabled
(-ffrontend-optimize), thus at all optimizations that enable it.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug fortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
  2020-09-18 20:42 ` [Bug fortran/97063] " anlauf at gcc dot gnu.org
  2020-09-18 20:49 ` anlauf at gcc dot gnu.org
@ 2020-09-18 22:19 ` jvdelisle at charter dot net
  2020-09-22 19:42 ` anlauf at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jvdelisle at charter dot net @ 2020-09-18 22:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

Jerry DeLisle <jvdelisle at charter dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at charter dot net

--- Comment #3 from Jerry DeLisle <jvdelisle at charter dot net> ---
(In reply to anlauf from comment #2)
> Interestingly, the bug "disappears" if frontend optimization is enabled
> (-ffrontend-optimize), thus at all optimizations that enable it.

It could be we need to fix in the runtime library. I have not looked to closely
yet but it would be best I think if the front-end did the necessary
transforming. The code is probably there already to do it.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug fortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (2 preceding siblings ...)
  2020-09-18 22:19 ` jvdelisle at charter dot net
@ 2020-09-22 19:42 ` anlauf at gcc dot gnu.org
  2020-10-11 17:59 ` [Bug libfortran/97063] " anlauf at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-09-22 19:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

--- Comment #4 from anlauf at gcc dot gnu.org ---
Having looked at the tree-dump, I am not sure if it is a FE or a library issue.

I appears that the negative stride miscalculates the base or offset of
the array probably by one:

program p
  implicit none
  integer               :: i, j
  real, dimension(6)    :: arr1 = [(i,i=0,5)]
  real, dimension(6,10) :: arr2 = reshape ([(((i+j),i=0,5),j=0,9)],[6,10])
  real, dimension(10)   :: arr3, arr6
  real, dimension(3)    :: arr4
  arr4 = arr1(5:1:-2)
  write(*,*) "--arr6--:"
  arr6 = matmul (arr4        , arr2(5:1:-2, :))
  write(*,'(10F6.1)') arr6
  arr4 = arr1(6:2:-2)
  write(*,*) "--arr6-- (with arr1 off by one):"
  arr6 = matmul (arr4        , arr2(5:1:-2, :))
  write(*,'(10F6.1)') arr6
  arr3 = matmul (arr1(5:1:-2), arr2(5:1:-2, :))
  write(*,*) "--arr3--:"
  write(*,'(10F6.1)') arr3
end program

This prints:

 --arr6--:
  20.0  26.0  32.0  38.0  44.0  50.0  56.0  62.0  68.0  74.0
 --arr6-- (with arr1 off by one):
  26.0  35.0  44.0  53.0  62.0  71.0  80.0  89.0  98.0 107.0
 --arr3--:
  26.0  35.0  44.0  53.0  62.0  71.0  80.0  89.0  98.0 107.0

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (3 preceding siblings ...)
  2020-09-22 19:42 ` anlauf at gcc dot gnu.org
@ 2020-10-11 17:59 ` anlauf at gcc dot gnu.org
  2020-10-11 19:10 ` anlauf at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-10-11 17:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |anlauf at gcc dot gnu.org
             Status|NEW                         |ASSIGNED
          Component|fortran                     |libfortran

--- Comment #5 from anlauf at gcc dot gnu.org ---
I have a patch.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (4 preceding siblings ...)
  2020-10-11 17:59 ` [Bug libfortran/97063] " anlauf at gcc dot gnu.org
@ 2020-10-11 19:10 ` anlauf at gcc dot gnu.org
  2020-10-18 18:16 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-10-11 19:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

--- Comment #6 from anlauf at gcc dot gnu.org ---
Patch: https://gcc.gnu.org/pipermail/fortran/2020-October/055169.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (5 preceding siblings ...)
  2020-10-11 19:10 ` anlauf at gcc dot gnu.org
@ 2020-10-18 18:16 ` cvs-commit at gcc dot gnu.org
  2020-10-19 21:07 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-18 18:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:cd6cd6aed195b4ec7d652e8b41d60b60e174304e

commit r11-4027-gcd6cd6aed195b4ec7d652e8b41d60b60e174304e
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sun Oct 18 20:15:26 2020 +0200

    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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (6 preceding siblings ...)
  2020-10-18 18:16 ` cvs-commit at gcc dot gnu.org
@ 2020-10-19 21:07 ` cvs-commit at gcc dot gnu.org
  2020-10-24 20:09 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-19 21:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:53325dec8e01775af3eb9231d10f2afa1b8d5559

commit r10-8912-g53325dec8e01775af3eb9231d10f2afa1b8d5559
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sun Oct 18 20:15:26 2020 +0200

    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.

    (cherry picked from commit cd6cd6aed195b4ec7d652e8b41d60b60e174304e)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (7 preceding siblings ...)
  2020-10-19 21:07 ` cvs-commit at gcc dot gnu.org
@ 2020-10-24 20:09 ` cvs-commit at gcc dot gnu.org
  2020-10-24 20:14 ` cvs-commit at gcc dot gnu.org
  2020-10-24 20:16 ` anlauf at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-24 20:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:8d3b261f250a3863d886ae845e47f235d301fb09

commit r9-9010-g8d3b261f250a3863d886ae845e47f235d301fb09
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sun Oct 18 20:15:26 2020 +0200

    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.

    (cherry picked from commit cd6cd6aed195b4ec7d652e8b41d60b60e174304e)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (8 preceding siblings ...)
  2020-10-24 20:09 ` cvs-commit at gcc dot gnu.org
@ 2020-10-24 20:14 ` cvs-commit at gcc dot gnu.org
  2020-10-24 20:16 ` anlauf at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-10-24 20:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:98931867e61552f76af90eb5337a28ccedbd604b

commit r8-10596-g98931867e61552f76af90eb5337a28ccedbd604b
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sun Oct 18 20:15:26 2020 +0200

    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.

    (cherry picked from commit cd6cd6aed195b4ec7d652e8b41d60b60e174304e)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libfortran/97063] [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix
  2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
                   ` (9 preceding siblings ...)
  2020-10-24 20:14 ` cvs-commit at gcc dot gnu.org
@ 2020-10-24 20:16 ` anlauf at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-10-24 20:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97063

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #11 from anlauf at gcc dot gnu.org ---
Fixed on master for gcc-11, and on all open branches (10/9/8).  Closing.

Thanks for the report!

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-10-24 20:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16  1:00 [Bug fortran/97063] New: [ MATMUL intrinsic] The value of result is wrong when vector (step size is negative) * matrix xin.liu@compiler-dev.com
2020-09-18 20:42 ` [Bug fortran/97063] " anlauf at gcc dot gnu.org
2020-09-18 20:49 ` anlauf at gcc dot gnu.org
2020-09-18 22:19 ` jvdelisle at charter dot net
2020-09-22 19:42 ` anlauf at gcc dot gnu.org
2020-10-11 17:59 ` [Bug libfortran/97063] " anlauf at gcc dot gnu.org
2020-10-11 19:10 ` anlauf at gcc dot gnu.org
2020-10-18 18:16 ` cvs-commit at gcc dot gnu.org
2020-10-19 21:07 ` cvs-commit at gcc dot gnu.org
2020-10-24 20:09 ` cvs-commit at gcc dot gnu.org
2020-10-24 20:14 ` cvs-commit at gcc dot gnu.org
2020-10-24 20:16 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).