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

            Bug ID: 92818
           Summary: Typo in vec_perm -> bit_insert pattern
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Index: gcc/match.pd
===================================================================
--- gcc/match.pd        (revision 278992)
+++ gcc/match.pd        (working copy)
@@ -6049,7 +6049,7 @@ (define_operator_list COND_TERNARY
                    break;
                if (at < encoded_nelts && sel.series_p (at + 1, 1, at + 1, 1))
                  {
-                   if (known_lt (at, nelts))
+                   if (known_lt (poly_uint64 (sel[at]), nelts))
                      ins = fold_read_from_vector (cop0, sel[at]);
                    else
                      ins = fold_read_from_vector (cop1, sel[at] - nelts);

Reply via email to