public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
@ 2023-05-03  0:05 seurer at gcc dot gnu.org
  2023-05-03  6:49 ` [Bug testsuite/109705] " rguenth at gcc dot gnu.org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: seurer at gcc dot gnu.org @ 2023-05-03  0:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109705
           Summary: [14 regression] gcc.dg/vect/pr25413a.c fails after
                    r14-333-g6d4b59a9356ac4
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:6d4b59a9356ac4df7f4ae370495dc3366d0daa55, r14-333-g6d4b59a9356ac4
make  -k check-gcc RUNTESTFLAGS="vect.exp=gcc.dg/vect/pr25413a.c"
FAIL: gcc.dg/vect/pr25413a.c scan-tree-dump-times vect "vectorized 2 loops" 1
FAIL: gcc.dg/vect/pr25413a.c -flto -ffat-lto-objects  scan-tree-dump-times vect
"vectorized 2 loops" 1
# of expected passes            4
# of unexpected failures        2


commit 6d4b59a9356ac4df7f4ae370495dc3366d0daa55 (HEAD, refs/bisect/bad)
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Jan 18 10:59:52 2023 +0100

    Add emulated scatter capability to the vectorizer
            * gcc.dg/vect/pr25413a.c: Un-XFAIL everywhere.


This fails on power 8 and 9 LE but is OK on BE and on power 10.

Perhaps there is some LE optimization missing previous to power 10?

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
@ 2023-05-03  6:49 ` rguenth at gcc dot gnu.org
  2023-05-03  8:19 ` segher at gcc dot gnu.org
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-03  6:49 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
             Target|powerpc64le-linux-gnu       |powerpc64le-linux-gnu,
                   |                            |aarch64
           Keywords|                            |testsuite-fail

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Also aarch64 as reported by Christophe.  We need vect_long_mult for the scatter
but the effective target looks incomplete.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
  2023-05-03  6:49 ` [Bug testsuite/109705] " rguenth at gcc dot gnu.org
@ 2023-05-03  8:19 ` segher at gcc dot gnu.org
  2023-05-03  9:13 ` rguenther at suse dot de
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: segher at gcc dot gnu.org @ 2023-05-03  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-05-03

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
vect_long_mult has
         || (([istarget powerpc*-*-*]
              && ![istarget powerpc-*-linux*paired*])
              && [check_effective_target_ilp32])
which does not know that p10 has 64x64->64 mult in vectors (and has weird
parens
as well :-P )  The linux*paired* case can be removed of course.

Confirmed.  Should we open a separate bug for this Power problem, or handle it
here?

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
  2023-05-03  6:49 ` [Bug testsuite/109705] " rguenth at gcc dot gnu.org
  2023-05-03  8:19 ` segher at gcc dot gnu.org
@ 2023-05-03  9:13 ` rguenther at suse dot de
  2024-01-12 10:45 ` rguenth at gcc dot gnu.org
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenther at suse dot de @ 2023-05-03  9:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 3 May 2023, segher at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109705
> 
> Segher Boessenkool <segher at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>      Ever confirmed|0                           |1
>              Status|UNCONFIRMED                 |NEW
>    Last reconfirmed|                            |2023-05-03
> 
> --- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
> vect_long_mult has
>          || (([istarget powerpc*-*-*]
>               && ![istarget powerpc-*-linux*paired*])
>               && [check_effective_target_ilp32])
> which does not know that p10 has 64x64->64 mult in vectors (and has weird
> parens
> as well :-P )  The linux*paired* case can be removed of course.
> 
> Confirmed.  Should we open a separate bug for this Power problem, or handle it
> here?

Handle it here - the testcase this PR is about clearly lacks a
vect_long_mult requirement on the dump scanning but both aarch64 and
power seem to get that wrong so the fix wouldn't work.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-05-03  9:13 ` rguenther at suse dot de
@ 2024-01-12 10:45 ` rguenth at gcc dot gnu.org
  2024-01-15 13:50 ` rguenth at gcc dot gnu.org
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-12 10:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can target maintainers have a look please?

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-01-12 10:45 ` rguenth at gcc dot gnu.org
@ 2024-01-15 13:50 ` rguenth at gcc dot gnu.org
  2024-01-16  2:56 ` cvs-commit at gcc dot gnu.org
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-15 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2024-01-15 13:50 ` rguenth at gcc dot gnu.org
@ 2024-01-16  2:56 ` cvs-commit at gcc dot gnu.org
  2024-01-19 15:44 ` bergner at gcc dot gnu.org
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-16  2:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kewen Lin <linkw@gcc.gnu.org>:

https://gcc.gnu.org/g:39fa71a0882928a25bd170580e3e9e89a69dce36

commit r14-7270-g39fa71a0882928a25bd170580e3e9e89a69dce36
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Mon Jan 15 20:55:40 2024 -0600

    testsuite: Fix vect_long_mult on Power [PR109705]

    As pointed out by the discussion in PR109705, the current
    vect_long_mult effective target check on Power is broken.
    This patch is to fix it accordingly.

    With additional change by adding a guard vect_long_mult
    in gcc.dg/vect/pr25413a.c, it's tested well on Power{8,9}
    LE & BE (also on Power10 LE as before).

            PR testsuite/109705

    gcc/testsuite/ChangeLog:

            * lib/target-supports.exp (check_effective_target_vect_long_mult):
            Fix powerpc*-*-* checks.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2024-01-16  2:56 ` cvs-commit at gcc dot gnu.org
@ 2024-01-19 15:44 ` bergner at gcc dot gnu.org
  2024-01-22  3:14 ` linkw at gcc dot gnu.org
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: bergner at gcc dot gnu.org @ 2024-01-19 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to GCC Commits from comment #5)
> commit r14-7270-g39fa71a0882928a25bd170580e3e9e89a69dce36
> Author: Kewen Lin <linkw@linux.ibm.com>
> Date:   Mon Jan 15 20:55:40 2024 -0600
> 
>     testsuite: Fix vect_long_mult on Power [PR109705]
>     
>     As pointed out by the discussion in PR109705, the current
>     vect_long_mult effective target check on Power is broken.
>     This patch is to fix it accordingly.

Does this need backporting?

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2024-01-19 15:44 ` bergner at gcc dot gnu.org
@ 2024-01-22  3:14 ` linkw at gcc dot gnu.org
  2024-01-24  7:44 ` pinskia at gcc dot gnu.org
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: linkw at gcc dot gnu.org @ 2024-01-22  3:14 UTC (permalink / raw)
  To: gcc-bugs

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

Kewen Lin <linkw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |linkw at gcc dot gnu.org

--- Comment #7 from Kewen Lin <linkw at gcc dot gnu.org> ---
(In reply to Peter Bergner from comment #6)
> (In reply to GCC Commits from comment #5)
> > commit r14-7270-g39fa71a0882928a25bd170580e3e9e89a69dce36
> > Author: Kewen Lin <linkw@linux.ibm.com>
> > Date:   Mon Jan 15 20:55:40 2024 -0600
> > 
> >     testsuite: Fix vect_long_mult on Power [PR109705]
> >     
> >     As pointed out by the discussion in PR109705, the current
> >     vect_long_mult effective target check on Power is broken.
> >     This patch is to fix it accordingly.
> 
> Does this need backporting?

I guess no, the only use of vect_long_mult in release branches is
gcc/testsuite/gcc.dg/vect/pr60656.c which has another check
vect_widen_mult_si_to_di_pattern unsupported on Power.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2024-01-22  3:14 ` linkw at gcc dot gnu.org
@ 2024-01-24  7:44 ` pinskia at gcc dot gnu.org
  2024-01-24 17:37 ` pinskia at gcc dot gnu.org
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-24  7:44 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So for aarch64, vectorized long can be done with SVE enabled or ILP32 or with a
constant.  I will submit a patch for aarch64 against
check_effective_target_vect_long_mult tomorrow for that part.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2024-01-24  7:44 ` pinskia at gcc dot gnu.org
@ 2024-01-24 17:37 ` pinskia at gcc dot gnu.org
  2024-01-24 17:40 ` pinskia at gcc dot gnu.org
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-24 17:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #8)
> So for aarch64, vectorized long can be done with SVE enabled or ILP32 or
> with a constant.  I will submit a patch for aarch64 against
> check_effective_target_vect_long_mult tomorrow for that part.

https://gcc.gnu.org/pipermail/gcc-patches/2024-January/643855.html

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2024-01-24 17:37 ` pinskia at gcc dot gnu.org
@ 2024-01-24 17:40 ` pinskia at gcc dot gnu.org
  2024-01-24 18:20 ` pinskia at gcc dot gnu.org
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-24 17:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
And yes gcc.dg/vect/pr25413a.c testcase passes when SVE is enabled too.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2024-01-24 17:40 ` pinskia at gcc dot gnu.org
@ 2024-01-24 18:20 ` pinskia at gcc dot gnu.org
  2024-01-24 18:22 ` cvs-commit at gcc dot gnu.org
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-24 18:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Also aarch64 as reported by Christophe.  We need vect_long_mult for the
> scatter but the effective target looks incomplete.

I think the only thing left is updating the testcase to use vect_long_mult
since both powerpc and aarch64 have updated/corrected vect_long_mult .

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2024-01-24 18:20 ` pinskia at gcc dot gnu.org
@ 2024-01-24 18:22 ` cvs-commit at gcc dot gnu.org
  2024-01-25 21:57 ` pinskia at gcc dot gnu.org
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-24 18:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

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

commit r14-8399-ge6fbc3cc786a74a098352868348e187877bfbc8b
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date:   Wed Jan 24 00:00:34 2024 -0800

    Fix vect_long_mult for aarch64 [PR109705]

    On aarch64, vectorization of `long` multiply can be done if SVE is enabled
    or if long is 32bit (ILP32). It can also be done for constants too but
there
    is no effective target test for that just yet.

    Build and tested on aarch64-linux-gnu with no regressions (also tested with
SVE enabled).

    gcc/testsuite/ChangeLog:

            PR testsuite/109705
            * lib/target-supports.exp (check_effective_target_vect_long_mult):
            Fix aarch64*-*-* checks.

    Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2024-01-24 18:22 ` cvs-commit at gcc dot gnu.org
@ 2024-01-25 21:57 ` pinskia at gcc dot gnu.org
  2024-01-26  5:06 ` pinskia at gcc dot gnu.org
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-25 21:57 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #11)
> I think the only thing left is updating the testcase to use vect_long_mult
> since both powerpc and aarch64 have updated/corrected vect_long_mult .

I am going to test this patch.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2024-01-25 21:57 ` pinskia at gcc dot gnu.org
@ 2024-01-26  5:06 ` pinskia at gcc dot gnu.org
  2024-01-26  7:35 ` cvs-commit at gcc dot gnu.org
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-26  5:06 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2024-January
                   |                            |/644004.html

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Patch posted:
https://gcc.gnu.org/pipermail/gcc-patches/2024-January/644004.html

It would be useful if tested on powerpc too. I tested it on aarch64 without and
with SVE enabled to make sure vect_long_mult is correct there.
And without SVE enabled we get:
PASS: gcc.dg/vect/pr25413a.c scan-tree-dump-times vect "vectorized 1 loops" 1

And with it being enabled we get:
PASS: gcc.dg/vect/pr25413a.c scan-tree-dump-times vect "vectorized 2 loops" 1


as expected now.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (14 preceding siblings ...)
  2024-01-26  5:06 ` pinskia at gcc dot gnu.org
@ 2024-01-26  7:35 ` cvs-commit at gcc dot gnu.org
  2024-01-26  7:35 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-26  7:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

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

commit r14-8443-gbfd6b36f08021f023e0e9223f5aea315b74a5c56
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date:   Thu Jan 25 13:58:10 2024 -0800

    testsuite/vect: Fix pr25413a.c expectations [PR109705]

    The 2 loops in octfapg_universe can and will be vectorized now
    after r14-333-g6d4b59a9356ac4 on targets that support multiplication
    in the long type. But the testcase does not check vect_long_mult for
    that, so this patch corrects that error and now the testcase passes
correctly
    on aarch64-linux-gnu (with and without SVE).

    Built and tested on aarch64-linux-gnu (with and without SVE).

    gcc/testsuite/ChangeLog:

            PR testsuite/109705
            * gcc.dg/vect/pr25413a.c: Expect 1 vectorized loops for
!vect_long_mult
            and 2 for vect_long_mult.

    Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (15 preceding siblings ...)
  2024-01-26  7:35 ` cvs-commit at gcc dot gnu.org
@ 2024-01-26  7:35 ` pinskia at gcc dot gnu.org
  2024-01-26 21:28 ` seurer at gcc dot gnu.org
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-26  7:35 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (16 preceding siblings ...)
  2024-01-26  7:35 ` pinskia at gcc dot gnu.org
@ 2024-01-26 21:28 ` seurer at gcc dot gnu.org
  2024-01-26 21:35 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: seurer at gcc dot gnu.org @ 2024-01-26 21:28 UTC (permalink / raw)
  To: gcc-bugs

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

seurer at gcc dot gnu.org changed:

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

--- Comment #17 from seurer at gcc dot gnu.org ---
This still fails on power.

Previously it was:

g:d40b3c1e439db05c835b6bd4fd5bba58fda71dd6, r14-8442-gd40b3c1e439db0
make  -k check-gcc RUNTESTFLAGS="--target_board=unix'{-m32,-m64}'
vect.exp=gcc.dg/vect/pr25413a.c"
FAIL: gcc.dg/vect/pr25413a.c scan-tree-dump-times vect "vectorized 2 loops" 1
FAIL: gcc.dg/vect/pr25413a.c -flto -ffat-lto-objects  scan-tree-dump-times vect
"vectorized 2 loops" 1


Now it is:

g:bfd6b36f08021f023e0e9223f5aea315b74a5c56, r14-8443-gbfd6b36f08021f
make  -k check-gcc RUNTESTFLAGS="--target_board=unix'{-m32,-m64}'
vect.exp=gcc.dg/vect/pr25413a.c"
FAIL: gcc.dg/vect/pr25413a.c scan-tree-dump-times vect "vectorized 1 loops" 1
FAIL: gcc.dg/vect/pr25413a.c -flto -ffat-lto-objects  scan-tree-dump-times vect
"vectorized 1 loops" 1

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (17 preceding siblings ...)
  2024-01-26 21:28 ` seurer at gcc dot gnu.org
@ 2024-01-26 21:35 ` pinskia at gcc dot gnu.org
  2024-01-26 21:36 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-26 21:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm. this loop should almost definitely get vectorized if vect_double is true:
  for (i=0;i<nn;i++) *(m->c+i) = num__infty;

I wonder why it is not on powerpc.

vect_double for powerpc does:
             || ([istarget powerpc*-*-*] && [check_vsx_hw_available])

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (18 preceding siblings ...)
  2024-01-26 21:35 ` pinskia at gcc dot gnu.org
@ 2024-01-26 21:36 ` pinskia at gcc dot gnu.org
  2024-01-26 22:38 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-26 21:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to seurer from comment #17)
> This still fails on power.

Just so I can start to trying to reproduce it, how was your compiler
configured? I want to make sure the testsuite choices are done correctly.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (19 preceding siblings ...)
  2024-01-26 21:36 ` pinskia at gcc dot gnu.org
@ 2024-01-26 22:38 ` pinskia at gcc dot gnu.org
  2024-01-26 22:43 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-26 22:38 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|https://gcc.gnu.org/piperma |
                   |il/gcc-patches/2024-January |
                   |/644004.html                |
           Keywords|patch                       |

--- Comment #20 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
vect_long_mult is wrong again for powerpc (32bit).

vect_long_mult should return true for ILP32 powerpc still. Because long is
32bit there ...

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (20 preceding siblings ...)
  2024-01-26 22:38 ` pinskia at gcc dot gnu.org
@ 2024-01-26 22:43 ` pinskia at gcc dot gnu.org
  2024-01-29  2:36 ` cvs-commit at gcc dot gnu.org
  2024-01-29  3:29 ` pinskia at gcc dot gnu.org
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-26 22:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #20)
> vect_long_mult is wrong again for powerpc (32bit).
> 
> vect_long_mult should return true for ILP32 powerpc still. Because long is
> 32bit there ...

See https://gcc.gnu.org/pipermail/gcc-patches/2024-January/644098.html for a
patch to test. I cannot test it fully; I tried doing a simple cross build but
that failed.

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (21 preceding siblings ...)
  2024-01-26 22:43 ` pinskia at gcc dot gnu.org
@ 2024-01-29  2:36 ` cvs-commit at gcc dot gnu.org
  2024-01-29  3:29 ` pinskia at gcc dot gnu.org
  23 siblings, 0 replies; 25+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-29  2:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kewen Lin <linkw@gcc.gnu.org>:

https://gcc.gnu.org/g:5b393ac7f1715328ee92236071edc3885bf53317

commit r14-8485-g5b393ac7f1715328ee92236071edc3885bf53317
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date:   Sun Jan 28 20:35:05 2024 -0600

    testsuite: Fix vect_long_mult for 32-bit Power [PR109705]

    As PR109705#c17, commit r14-7270 missed to consider long
    type is 32bit with option -m32.  This patch is take care of
    it accordingly.

    Note that the vect_long_mult is supposed to be only used in
    vect/ (generic), powerpc_altivec_ok would be guaranteed.

            PR testsuite/109705

    gcc/testsuite/ChangeLog:

            * lib/target-supports.exp (check_effective_target_vect_long_mult):
            Fix powerpc*-*-* checks by considering ilp32.

    Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>

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

* [Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4
  2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
                   ` (22 preceding siblings ...)
  2024-01-29  2:36 ` cvs-commit at gcc dot gnu.org
@ 2024-01-29  3:29 ` pinskia at gcc dot gnu.org
  23 siblings, 0 replies; 25+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29  3:29 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

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

--- Comment #23 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The testcase now has the corrected check and the check has been fixed (at least
for powerpc* and aarch64) so closing as fixed.

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

end of thread, other threads:[~2024-01-29  3:29 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03  0:05 [Bug testsuite/109705] New: [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4 seurer at gcc dot gnu.org
2023-05-03  6:49 ` [Bug testsuite/109705] " rguenth at gcc dot gnu.org
2023-05-03  8:19 ` segher at gcc dot gnu.org
2023-05-03  9:13 ` rguenther at suse dot de
2024-01-12 10:45 ` rguenth at gcc dot gnu.org
2024-01-15 13:50 ` rguenth at gcc dot gnu.org
2024-01-16  2:56 ` cvs-commit at gcc dot gnu.org
2024-01-19 15:44 ` bergner at gcc dot gnu.org
2024-01-22  3:14 ` linkw at gcc dot gnu.org
2024-01-24  7:44 ` pinskia at gcc dot gnu.org
2024-01-24 17:37 ` pinskia at gcc dot gnu.org
2024-01-24 17:40 ` pinskia at gcc dot gnu.org
2024-01-24 18:20 ` pinskia at gcc dot gnu.org
2024-01-24 18:22 ` cvs-commit at gcc dot gnu.org
2024-01-25 21:57 ` pinskia at gcc dot gnu.org
2024-01-26  5:06 ` pinskia at gcc dot gnu.org
2024-01-26  7:35 ` cvs-commit at gcc dot gnu.org
2024-01-26  7:35 ` pinskia at gcc dot gnu.org
2024-01-26 21:28 ` seurer at gcc dot gnu.org
2024-01-26 21:35 ` pinskia at gcc dot gnu.org
2024-01-26 21:36 ` pinskia at gcc dot gnu.org
2024-01-26 22:38 ` pinskia at gcc dot gnu.org
2024-01-26 22:43 ` pinskia at gcc dot gnu.org
2024-01-29  2:36 ` cvs-commit at gcc dot gnu.org
2024-01-29  3:29 ` pinskia 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).