public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/110892] New: [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing
@ 2023-08-03 16:48 ewlu at rivosinc dot com
  2023-08-03 16:53 ` [Bug target/110892] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ewlu at rivosinc dot com @ 2023-08-03 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110892
           Summary: [14 Regression] Risc-V rvv testsuite failures caused
                    by conditional move costing
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
  Target Milestone: ---

Created attachment 55682
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55682&action=edit
testsuite failures

Seeing 129 new failures on 36 rvv test cases.

Bisected using https://github.com/patrick-rivos/riscv-gnu-toolchain/issues/127

Confirmed to work:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=cf58b896a26390c98ae5382377fcdf44e8ae209f
Confirmed to fail - rv32 newlib:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=e15d0b6680d10d7666195e9db65581364ad5e5df
Confirmed to fail - other linux/newlib risc-v targets:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2d73f2eb80caf328bc4dd1324d475e7bf6b56837

Seems to be caused by
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=e15d0b6680d10d7666195e9db65581364ad5e5df
"[PATCH 3/5] [RISC-V] RISC-V Conditional Move costing [was:Generate Zicond
instruction for select pattern with condition eq or neq to 0]"

Most(all?) failures appear to be regex match failures.

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

* [Bug target/110892] [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing
  2023-08-03 16:48 [Bug target/110892] New: [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing ewlu at rivosinc dot com
@ 2023-08-03 16:53 ` pinskia at gcc dot gnu.org
  2023-08-03 16:56 ` patrick at rivosinc dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-03 16:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
           Keywords|                            |missed-optimization,
                   |                            |testsuite-fail

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most seem like the cost model missed the vector use case of IF_THEN_ELSE ?

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

* [Bug target/110892] [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing
  2023-08-03 16:48 [Bug target/110892] New: [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing ewlu at rivosinc dot com
  2023-08-03 16:53 ` [Bug target/110892] " pinskia at gcc dot gnu.org
@ 2023-08-03 16:56 ` patrick at rivosinc dot com
  2023-08-03 20:56 ` patrick at rivosinc dot com
  2023-08-03 20:58 ` ewlu at rivosinc dot com
  3 siblings, 0 replies; 5+ messages in thread
From: patrick at rivosinc dot com @ 2023-08-03 16:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Patrick O'Neill <patrick at rivosinc dot com> ---
Seems like a fix was pushed:
https://inbox.sourceware.org/gcc-patches/89dfe3c2-ef96-3000-de87-74ff83354adf@gmail.com/T/#m09608208a2dcc2bbf88a4f3419b062b4b4b349c5

We'll test it and update the issue once it's confirmed to be fixed.

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

* [Bug target/110892] [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing
  2023-08-03 16:48 [Bug target/110892] New: [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing ewlu at rivosinc dot com
  2023-08-03 16:53 ` [Bug target/110892] " pinskia at gcc dot gnu.org
  2023-08-03 16:56 ` patrick at rivosinc dot com
@ 2023-08-03 20:56 ` patrick at rivosinc dot com
  2023-08-03 20:58 ` ewlu at rivosinc dot com
  3 siblings, 0 replies; 5+ messages in thread
From: patrick at rivosinc dot com @ 2023-08-03 20:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Patrick O'Neill <patrick at rivosinc dot com> ---
These failures are fixed as of d61efa3cd3378be38738bfb5139925d1505c1325

Confirmed using rv32 newlib.
https://github.com/patrick-rivos/riscv-gnu-toolchain/issues/139

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

* [Bug target/110892] [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing
  2023-08-03 16:48 [Bug target/110892] New: [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing ewlu at rivosinc dot com
                   ` (2 preceding siblings ...)
  2023-08-03 20:56 ` patrick at rivosinc dot com
@ 2023-08-03 20:58 ` ewlu at rivosinc dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ewlu at rivosinc dot com @ 2023-08-03 20:58 UTC (permalink / raw)
  To: gcc-bugs

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

Edwin Lu <ewlu at rivosinc dot com> changed:

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

--- Comment #4 from Edwin Lu <ewlu at rivosinc dot com> ---
Fixed. See Patrick's comment for details

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

end of thread, other threads:[~2023-08-03 20:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-03 16:48 [Bug target/110892] New: [14 Regression] Risc-V rvv testsuite failures caused by conditional move costing ewlu at rivosinc dot com
2023-08-03 16:53 ` [Bug target/110892] " pinskia at gcc dot gnu.org
2023-08-03 16:56 ` patrick at rivosinc dot com
2023-08-03 20:56 ` patrick at rivosinc dot com
2023-08-03 20:58 ` ewlu at rivosinc dot com

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).