[llvm-bugs] [Bug 38658] New: [X86] Failure to lower VSELECT on pre-SSE41 targets

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 21 03:59:33 PDT 2018


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

            Bug ID: 38658
           Summary: [X86] Failure to lower VSELECT on pre-SSE41 targets
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: andrea.dibiagio at gmail.com, craig.topper at gmail.com,
                    llvm-bugs at lists.llvm.org, spatel+llvm at rotateright.com

define <16 x i8> @sdiv(<16 x i8>) {
  %2 = sdiv <16 x i8> %0, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8
1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 7>
  ret <16 x i8> %2
}

llc -mcpu=btver1

LLVM ERROR: Cannot select: t158: v8i16 = vselect t249, t250, t152
  t249: v8i16 = X86ISD::VSRAI t153, Constant:i8<15>

Better VSELECT support in SelectionDAGLegalize::ExpandNode?

-- 
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/20180821/af18a73f/attachment.html>


More information about the llvm-bugs mailing list