1 ; RUN: llc < %s -march=x86 -mattr=+mmx,+sse2 > %t1
2 ; RUN: grep movzwl %t1 | count 2
3 ; RUN: grep movzbl %t1 | count 2
4 ; RUN: grep movd %t1 | count 4
6 define <4 x i16> @a(i32* %x1) nounwind {
9 %x = trunc i32 %x3 to i16
10 %r = insertelement <4 x i16> zeroinitializer, i16 %x, i32 0
14 define <8 x i16> @b(i32* %x1) nounwind {
17 %x = trunc i32 %x3 to i16
18 %r = insertelement <8 x i16> zeroinitializer, i16 %x, i32 0
22 define <8 x i8> @c(i32* %x1) nounwind {
25 %x = trunc i32 %x3 to i8
26 %r = insertelement <8 x i8> zeroinitializer, i8 %x, i32 0
30 define <16 x i8> @d(i32* %x1) nounwind {
33 %x = trunc i32 %x3 to i8
34 %r = insertelement <16 x i8> zeroinitializer, i8 %x, i32 0