[llvm-bugs] [Bug 34855] New: Cannot select shl and srl for v2i64

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 5 21:15:19 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34855

            Bug ID: 34855
           Summary: Cannot select shl and srl for v2i64
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: babokin at gmail.com
                CC: llvm-bugs at lists.llvm.org

clang trunk rev314936, x86_64.

> cat f1.cpp
typedef int a __attribute__((ext_vector_type(2)));
a b, c, d, e = b << (c & 0) * 3 * (d * (4294950912 ^ 6));

> clang++ -w -O0 -c f1.cpp
fatal error: error in backend: Cannot select: t79: v2i64 = shl t115, t94
<...>

> cat f2.cpp
typedef int a __attribute__((ext_vector_type(2)));
a b, c, d = b >> 3 * (4294959106 * (0 * c));

> clang++ -w -O0 -c f2.cpp
fatal error: error in backend: Cannot select: t121: v2i64 = srl t120, t90
<...>

-- 
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/20171006/578f8074/attachment.html>


More information about the llvm-bugs mailing list