[AVX512] Bring back vector-shuffle lowering support through broadcasts
[oota-llvm.git] / test / CodeGen / X86 / illegal-vector-args-return.ll
1 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "mulpd     %xmm3, %xmm1"
2 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "mulpd     %xmm2, %xmm0"
3 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "addps     %xmm3, %xmm1"
4 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mcpu=nehalem | grep "addps     %xmm2, %xmm0"
5
6 define <4 x double> @foo(<4 x double> %x, <4 x double> %z) {
7   %y = fmul <4 x double> %x, %z
8   ret <4 x double> %y
9 }
10
11 define <8 x float> @bar(<8 x float> %x, <8 x float> %z) {
12   %y = fadd <8 x float> %x, %z
13   ret <8 x float> %y
14 }