https://llvm.org/bugs/show_bug.cgi?id=27265
Bug ID: 27265 Summary: [X86] Failure to fold v8i16 extractelement 0'th element to (v)pextrw 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 Attempting to store the 0'th element of a v8i16 fails to fold the store: define void @str0_8i16(<8 x i16> %v, i16* %p) { %1 = extractelement <8 x i16> %v, i32 0 store i16 %1, i16* %p ret void } llc -march=btver2: str0_8i16: vmovd %xmm0, %eax movw %ax, (%rdi) retq Storing other elements works fine: define void @str1_8i16(<8 x i16> %v, i16* %p) { %1 = extractelement <8 x i16> %v, i32 1 store i16 %1, i16* %p ret void } llc -march=btver2: str1_8i16: vpextrw $1, %xmm0, (%rdi) retq And other types (4i32 / 16i8) don't exhibit this. -- 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