summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/vec_shift2.ll
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-15 11:05:42 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-15 11:05:42 +0000
commit0ad17402a90819a8485abf938505ea44871f6459 (patch)
treeb0cc9d6555b6c101c79045e6435104145ead2189 /llvm/test/CodeGen/X86/vec_shift2.ll
parent8b0a15b0ef696a4d3c2295e20bf9232a9aa90af4 (diff)
downloadbcm5719-llvm-0ad17402a90819a8485abf938505ea44871f6459.tar.gz
bcm5719-llvm-0ad17402a90819a8485abf938505ea44871f6459.zip
[X86][SSE] Attempt to convert SSE shift-by-var to shift-by-imm.
Prep work for PR40203 llvm-svn: 356249
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_shift2.ll')
-rw-r--r--llvm/test/CodeGen/X86/vec_shift2.ll8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/vec_shift2.ll b/llvm/test/CodeGen/X86/vec_shift2.ll
index 7a1ade72a38..a38187f190f 100644
--- a/llvm/test/CodeGen/X86/vec_shift2.ll
+++ b/llvm/test/CodeGen/X86/vec_shift2.ll
@@ -5,16 +5,12 @@
define <2 x i64> @t1(<2 x i64> %b1, <2 x i64> %c) nounwind {
; X32-LABEL: t1:
; X32: # %bb.0:
-; X32-NEXT: movl $14, %eax
-; X32-NEXT: movd %eax, %xmm1
-; X32-NEXT: psrlw %xmm1, %xmm0
+; X32-NEXT: psrlw $14, %xmm0
; X32-NEXT: retl
;
; X64-LABEL: t1:
; X64: # %bb.0:
-; X64-NEXT: movl $14, %eax
-; X64-NEXT: movd %eax, %xmm1
-; X64-NEXT: psrlw %xmm1, %xmm0
+; X64-NEXT: psrlw $14, %xmm0
; X64-NEXT: retq
%tmp1 = bitcast <2 x i64> %b1 to <8 x i16>
%tmp2 = tail call <8 x i16> @llvm.x86.sse2.psrl.w( <8 x i16> %tmp1, <8 x i16> bitcast (<4 x i32> < i32 14, i32 undef, i32 undef, i32 undef > to <8 x i16>) ) nounwind readnone
OpenPOWER on IntegriCloud