mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 07:52:55 +01:00
6f4b3f358d
- In addition to undefined, if V2 is zero vector, skip 2nd PSHUFB and POR as well as PSHUFB will zero elements with negative indices. Patch by Sriram Murali <sriram.murali@intel.com> llvm-svn: 163018
11 lines
435 B
LLVM
11 lines
435 B
LLVM
; RUN: llc -asm-verbose -mtriple=x86_64-unknown-unknown -mcpu=corei7 < %s | FileCheck %s
|
|
define <16 x i8> @shuf(<16 x i8> %inval1) {
|
|
entry:
|
|
%0 = shufflevector <16 x i8> %inval1, <16 x i8> zeroinitializer, <16 x i32> <i32 0, i32 4, i32 3, i32 2, i32 16, i32 16, i32 3, i32 4, i32 0, i32 4, i32 3, i32 2, i32 16, i32 16, i32 3, i32 4>
|
|
ret <16 x i8> %0
|
|
; CHECK: shuf
|
|
; CHECK: # BB#0: # %entry
|
|
; CHECK-NEXT: pshufb
|
|
; CHECK-NEXT: ret
|
|
}
|