public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/106543] New: *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2
@ 2022-08-06  4:47 pinskia at gcc dot gnu.org
  2023-03-22  6:17 ` [Bug target/106543] [10/11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-06  4:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106543
           Summary: *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is
                    no operand 2
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: riscv

This is definitely broken:
(define_insn "*sge<u>_<X:mode><GPR:mode>"
  [(set (match_operand:GPR           0 "register_operand" "=r")
        (any_ge:GPR (match_operand:X 1 "register_operand" " r")
                    (const_int 1)))]
  ""
  "slt%i2<u>\t%0,zero,%1"
  [(set_attr "type" "slt")
   (set_attr "mode" "<X:MODE>")])

%i2 is not valid here as there is no operand[2] .

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

* [Bug target/106543] [10/11/12 Regression] *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2
  2022-08-06  4:47 [Bug target/106543] New: *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2 pinskia at gcc dot gnu.org
@ 2023-03-22  6:17 ` pinskia at gcc dot gnu.org
  2023-03-27 14:12 ` [Bug target/106543] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-22  6:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-03-22
      Known to work|                            |7.1.0
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
            Summary|*sge<u>_<X:mode><GPR:mode>  |[10/11/12 Regression]
                   |uses operand 2 but there is |*sge<u>_<X:mode><GPR:mode>
                   |no operand 2                |uses operand 2 but there is
                   |                            |no operand 2
      Known to fail|                            |8.1.0
   Target Milestone|---                         |10.5

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It broke with r8-4335-g0791ac186bdddf so it is a regression as riscv was added
in GCC 7 and was correct then.

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

* [Bug target/106543] [10/11/12/13 Regression] *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2
  2022-08-06  4:47 [Bug target/106543] New: *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2 pinskia at gcc dot gnu.org
  2023-03-22  6:17 ` [Bug target/106543] [10/11/12 Regression] " pinskia at gcc dot gnu.org
@ 2023-03-27 14:12 ` rguenth at gcc dot gnu.org
  2023-07-07 10:43 ` [Bug target/106543] [11/12/13/14 " rguenth at gcc dot gnu.org
  2024-02-16 10:10 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-03-27 14:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

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

* [Bug target/106543] [11/12/13/14 Regression] *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2
  2022-08-06  4:47 [Bug target/106543] New: *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2 pinskia at gcc dot gnu.org
  2023-03-22  6:17 ` [Bug target/106543] [10/11/12 Regression] " pinskia at gcc dot gnu.org
  2023-03-27 14:12 ` [Bug target/106543] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2023-07-07 10:43 ` rguenth at gcc dot gnu.org
  2024-02-16 10:10 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

* [Bug target/106543] [11/12/13/14 Regression] *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2
  2022-08-06  4:47 [Bug target/106543] New: *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2 pinskia at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-07-07 10:43 ` [Bug target/106543] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2024-02-16 10:10 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-02-16 10:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:325d5dd53270fe8fd62b36c92c8f8b87c2938bf1

commit r14-9025-g325d5dd53270fe8fd62b36c92c8f8b87c2938bf1
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Fri Feb 16 17:27:24 2024 +0800

    RISC-V: Fix *sge<u>_<X:mode><GPR:mode> pattern

    *sge<u>_<X:mode><GPR:mode> pattern has referenced operand[2] which is
    invalid...it should just use `slti<u>` rather than `slti%i2<u>`.

    gcc/ChangeLog:

            PR target/106543
            * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>): Fix asm
            pattern.

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

end of thread, other threads:[~2024-02-16 10:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-06  4:47 [Bug target/106543] New: *sge<u>_<X:mode><GPR:mode> uses operand 2 but there is no operand 2 pinskia at gcc dot gnu.org
2023-03-22  6:17 ` [Bug target/106543] [10/11/12 Regression] " pinskia at gcc dot gnu.org
2023-03-27 14:12 ` [Bug target/106543] [10/11/12/13 " rguenth at gcc dot gnu.org
2023-07-07 10:43 ` [Bug target/106543] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-02-16 10:10 ` cvs-commit 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).