1 ; RUN: llc < %s -march=x86 -mattr=sse41 -stack-alignment=16 -join-physregs > %t
2 ; RUN: grep pmul %t | count 12
3 ; RUN: grep mov %t | count 11
5 ; The f() arguments in %xmm0 and %xmm1 cause an extra movdqa without -join-physregs.
7 define <4 x i32> @a(<4 x i32> %i) nounwind {
8 %A = mul <4 x i32> %i, < i32 117, i32 117, i32 117, i32 117 >
11 define <2 x i64> @b(<2 x i64> %i) nounwind {
12 %A = mul <2 x i64> %i, < i64 117, i64 117 >
15 define <4 x i32> @c(<4 x i32> %i, <4 x i32> %j) nounwind {
16 %A = mul <4 x i32> %i, %j
19 define <2 x i64> @d(<2 x i64> %i, <2 x i64> %j) nounwind {
20 %A = mul <2 x i64> %i, %j
23 ; Use a call to force spills.
25 define <4 x i32> @e(<4 x i32> %i, <4 x i32> %j) nounwind {
27 %A = mul <4 x i32> %i, %j
30 define <2 x i64> @f(<2 x i64> %i, <2 x i64> %j) nounwind {
32 %A = mul <2 x i64> %i, %j