mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
9008ca6b6b
PR2957 ISD::VECTOR_SHUFFLE now stores an array of integers representing the shuffle mask internal to the node, rather than taking a BUILD_VECTOR of ConstantSDNodes as the shuffle mask. A value of -1 represents UNDEF. In addition to eliminating the creation of illegal BUILD_VECTORS just to represent shuffle masks, we are better about canonicalizing the shuffle mask, resulting in substantially better code for some classes of shuffles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70225 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
523 B
LLVM
14 lines
523 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -o %t -f
|
|
; RUN: grep pextrw %t | count 1
|
|
; RUN: grep movlhps %t | count 1
|
|
; RUN: grep pshufhw %t | count 1
|
|
; RUN: grep pinsrw %t | count 1
|
|
; RUN: llvm-as < %s | llc -march=x86 -mcpu=core2 -o %t -f
|
|
; RUN: grep pshufb %t | count 1
|
|
|
|
define <8 x i16> @shuf3(<8 x i16> %T0, <8 x i16> %T1) nounwind readnone {
|
|
entry:
|
|
%tmp9 = shufflevector <8 x i16> %T0, <8 x i16> %T1, <8 x i32> < i32 0, i32 1, i32 undef, i32 undef, i32 3, i32 11, i32 undef , i32 undef >
|
|
ret <8 x i16> %tmp9
|
|
}
|