[LLVMbugs] [Bug 23886] New: broadcast of i64 generates broadcast of v2i64 (vbroadcasti128)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 18 14:38:55 PDT 2015


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

            Bug ID: 23886
           Summary: broadcast of i64 generates broadcast of v2i64
                    (vbroadcasti128)
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: ahmed.bougacha at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

define <4 x i64> @broadcast64(<2 x i64>* %src) {
  %l = load <2 x i64>* %src, align 16
  %r = shufflevector <2 x i64> %l, <2 x i64> undef, <4 x i32> <i32 0, i32 0,
i32 0, i32 0>
  ret <4 x i64> %r
}


->

        vbroadcasti128  (%rdi), %ymm0


whereas I expected (without folding):

        vmovaps  (%rdi), %xmm0
        vbroadcastq  %xmm0, %ymm0

-- 
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/20150618/be849494/attachment.html>


More information about the llvm-bugs mailing list