mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
2f8a6cdfa3
pmuludq is slow, but it turns out that all the unpacking and packing of the scalarized mul is even slower. 10% speedup on loop-vectorized paq8p. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170985 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
307 B
LLVM
15 lines
307 B
LLVM
; RUN: llc < %s -march=x86-64 -mcpu=core2 | FileCheck %s
|
|
|
|
define <4 x i32> @test1(<4 x i32> %x, <4 x i32> %y) {
|
|
%m = mul <4 x i32> %x, %y
|
|
ret <4 x i32> %m
|
|
; CHECK: test1:
|
|
; CHECK: pshufd $49
|
|
; CHECK: pmuludq
|
|
; CHECK: pshufd $49
|
|
; CHECK: pmuludq
|
|
; CHECK: shufps $-120
|
|
; CHECK: pshufd $-40
|
|
; CHECK: ret
|
|
}
|