mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
4c3a3208e3
Rewrite the pmulld patterns, and make sure that they fold in loads of arguments into the instruction. llvm-svn: 99910
17 lines
405 B
LLVM
17 lines
405 B
LLVM
; RUN: llc < %s -march=x86-64 -mattr=+sse41 -asm-verbose=0 | FileCheck %s
|
|
|
|
define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind {
|
|
; CHECK: test1:
|
|
; CHECK-NEXT: pmulld
|
|
%C = mul <4 x i32> %A, %B
|
|
ret <4 x i32> %C
|
|
}
|
|
|
|
define <4 x i32> @test1a(<4 x i32> %A, <4 x i32> *%Bp) nounwind {
|
|
; CHECK: test1a:
|
|
; CHECK-NEXT: pmulld
|
|
%B = load <4 x i32>* %Bp
|
|
%C = mul <4 x i32> %A, %B
|
|
ret <4 x i32> %C
|
|
}
|