public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/101787] New: There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540
@ 2021-08-05  7:58 crazylht at gmail dot com
  2021-08-05  9:03 ` [Bug middle-end/101787] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: crazylht at gmail dot com @ 2021-08-05  7:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101787
           Summary: There's no document for cond_ashr/ashl/lshr which is
                    introduce by r10-2540
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: crazylht at gmail dot com
  Target Milestone: ---

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

* [Bug middle-end/101787] There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540
  2021-08-05  7:58 [Bug other/101787] New: There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540 crazylht at gmail dot com
@ 2021-08-05  9:03 ` rguenth at gcc dot gnu.org
  2021-08-05 13:03 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-05  9:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-08-05
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed, md.texi amendments are missing.

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

* [Bug middle-end/101787] There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540
  2021-08-05  7:58 [Bug other/101787] New: There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540 crazylht at gmail dot com
  2021-08-05  9:03 ` [Bug middle-end/101787] " rguenth at gcc dot gnu.org
@ 2021-08-05 13:03 ` cvs-commit at gcc dot gnu.org
  2021-08-05 13:13 ` crazylht at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-05 13:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Sandiford <rsandifo@gcc.gnu.org>:

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

commit r12-2764-gc04bb6d93f3bd009800cb99e56c779a69d832691
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Thu Aug 5 14:03:24 2021 +0100

    doc: Document cond_* shift optabs in md.texi

    gcc/
            PR middle-end/101787
            * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.

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

* [Bug middle-end/101787] There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540
  2021-08-05  7:58 [Bug other/101787] New: There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540 crazylht at gmail dot com
  2021-08-05  9:03 ` [Bug middle-end/101787] " rguenth at gcc dot gnu.org
  2021-08-05 13:03 ` cvs-commit at gcc dot gnu.org
@ 2021-08-05 13:13 ` crazylht at gmail dot com
  2021-08-06  1:45 ` crazylht at gmail dot com
  2021-08-09  9:32 ` crazylht at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: crazylht at gmail dot com @ 2021-08-05 13:13 UTC (permalink / raw)
  To: gcc-bugs

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

Hongtao.liu <crazylht at gmail dot com> changed:

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

--- Comment #3 from Hongtao.liu <crazylht at gmail dot com> ---
.

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

* [Bug middle-end/101787] There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540
  2021-08-05  7:58 [Bug other/101787] New: There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540 crazylht at gmail dot com
                   ` (2 preceding siblings ...)
  2021-08-05 13:13 ` crazylht at gmail dot com
@ 2021-08-06  1:45 ` crazylht at gmail dot com
  2021-08-09  9:32 ` crazylht at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: crazylht at gmail dot com @ 2021-08-06  1:45 UTC (permalink / raw)
  To: gcc-bugs

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

Hongtao.liu <crazylht at gmail dot com> changed:

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

--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> ---
+@samp{cond_@var{op}@var{mode}} generally corresponds to a conditional
+form of @samp{@var{op}@var{mode}3}.  As an exception, the vector forms
+of shifts correspond to patterns like @code{vashl@var{mode}3} rather
+than patterns like @code{ashl@var{mode}3}.

It seems it supports both vashl and ashl

ashl with immediate shift count.
  <bb 3> [local count: 139586405]:
  # ivtmp.27_5 = PHI <ivtmp.27_12(3), 0(2)>
  vect__1.9_34 = MEM <vector(8) int> [(int *)&b + ivtmp.27_5 * 1];
  vect__2.12_37 = MEM <vector(8) int> [(int *)&c + ivtmp.27_5 * 1];
  vect_pretmp_13.15_40 = MEM <vector(8) int> [(int *)&d + ivtmp.27_5 * 1];
  vect__6.19_44 = MEM <vector(8) int> [(int *)&e + ivtmp.27_5 * 1];
  vect__7.20_45 = MAX_EXPR <vect_pretmp_13.15_40, vect__6.19_44>;
  _46 = vect__1.9_34 < vect__2.12_37;
  _33 = .COND_SHL (_46, vect_pretmp_13.15_40, 3, vect__7.20_45);
  MEM <vector(8) int> [(int *)&a + ivtmp.27_5 * 1] = _33;

ashl with variable shift count:
  <bb 2> [local count: 10737416]:
  _4 = e[0];

  <bb 3> [local count: 139586405]:
  # ivtmp.98_6 = PHI <ivtmp.98_13(3), 0(2)>
  vect__1.80_35 = MEM <vector(8) int> [(int *)&b + ivtmp.98_6 * 1];
  vect__2.83_38 = MEM <vector(8) int> [(int *)&c + ivtmp.98_6 * 1];
  vect_pretmp_14.86_41 = MEM <vector(8) int> [(int *)&d + ivtmp.98_6 * 1];
  vect__7.90_45 = MEM <vector(8) int> [(int *)&e + ivtmp.98_6 * 1];
  vect__8.91_46 = MAX_EXPR <vect_pretmp_14.86_41, vect__7.90_45>;
  _47 = vect__1.80_35 < vect__2.83_38;
  _34 = .COND_SHL (_47, vect_pretmp_14.86_41, _4, vect__8.91_46);
  MEM <vector(8) int> [(int *)&a + ivtmp.98_6 * 1] = _34;
  ivtmp.98_13 = ivtmp.98_6 + 32;


vashl with vector shift count:
  <bb 3> [local count: 139586405]:
  # ivtmp.98_6 = PHI <ivtmp.98_13(3), 0(2)>
  vect__1.80_34 = MEM <vector(8) int> [(int *)&b + ivtmp.98_6 * 1];
  vect__2.83_37 = MEM <vector(8) int> [(int *)&c + ivtmp.98_6 * 1];
  vect_pretmp_14.86_40 = MEM <vector(8) int> [(int *)&d + ivtmp.98_6 * 1];
  vect_pretmp_18.89_43 = MEM <vector(8) int> [(int *)&e + ivtmp.98_6 * 1];
  vect__8.91_45 = MAX_EXPR <vect_pretmp_14.86_40, vect_pretmp_18.89_43>;
  _46 = vect__1.80_34 < vect__2.83_37;
  _33 = .COND_SHL (_46, vect_pretmp_14.86_40, vect_pretmp_18.89_43,
vect__8.91_45);
  MEM <vector(8) int> [(int *)&a + ivtmp.98_6 * 1] = _33;
  ivtmp.98_13 = ivtmp.98_6 + 32;

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

* [Bug middle-end/101787] There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540
  2021-08-05  7:58 [Bug other/101787] New: There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540 crazylht at gmail dot com
                   ` (3 preceding siblings ...)
  2021-08-06  1:45 ` crazylht at gmail dot com
@ 2021-08-09  9:32 ` crazylht at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: crazylht at gmail dot com @ 2021-08-09  9:32 UTC (permalink / raw)
  To: gcc-bugs

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

Hongtao.liu <crazylht at gmail dot com> changed:

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

--- Comment #5 from Hongtao.liu <crazylht at gmail dot com> ---
.

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

end of thread, other threads:[~2021-08-09  9:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05  7:58 [Bug other/101787] New: There's no document for cond_ashr/ashl/lshr which is introduce by r10-2540 crazylht at gmail dot com
2021-08-05  9:03 ` [Bug middle-end/101787] " rguenth at gcc dot gnu.org
2021-08-05 13:03 ` cvs-commit at gcc dot gnu.org
2021-08-05 13:13 ` crazylht at gmail dot com
2021-08-06  1:45 ` crazylht at gmail dot com
2021-08-09  9:32 ` crazylht at gmail 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).