[llvm-bugs] [Bug 38110] New: Loop vectorizer assertion failure in truncateToMinimalBitwidths

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 9 11:41:10 PDT 2018


            Bug ID: 38110
           Summary: Loop vectorizer assertion failure in
           Product: libraries
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: uweigand at de.ibm.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20543
  --> https://bugs.llvm.org/attachment.cgi?id=20543&action=edit
Reduced test case

Running the attached test case through

  opt -loop-vectorize -mcpu=z13

on the s390x-ibm-linux target results in an assertion failure:

Unhandled instruction type!
UNREACHABLE executed at

The unhandled instruction at this point seems to be a phi node.

This is a reduced test case from a real-world application.  The corresponding
reduced C source code test case (same assertion failure) is:

test (unsigned int width, unsigned char *row,
      unsigned short src, unsigned short *dst)
  unsigned char *sp;
  unsigned int i;

  sp = row;
  for (i = 0; i < width; i++, sp++)
      if (*sp == src)
        *sp = (unsigned char) *dst;

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180709/6983e566/attachment.html>

More information about the llvm-bugs mailing list