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

            Bug ID: 31309
           Summary: Failure to combine scalar load+zext into vector
                    load+zext
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: llvm-...@redking.me.uk
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

define <4 x i32> @load_i32_zext_i128_v4i32(i32* %in) {
  %1 = load i32, i32* %in
  %2 = zext i32 %1 to i128
  %3 = bitcast i128 %2 to <4 x i32>
  ret <4 x i32> %3
}

Current output:

load_i32_zext_i128_v4i32:
        movl    (%rdi), %eax
        vmovq   %rax, %xmm0
        retq

It would be better if we managed:

load_i32_zext_i128_v4i32:
        vmovd    (%rdi), %xmm0
        retq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to