blob: ba0a1f90ab9234b53b629de7d5f2196ee0967f74 [file] [log] [blame]
Eli Friedman12ca3fe2008-06-19 06:09:51 +00001; RUN: llvm-as < %s | llc -march=x86 -mcpu=i386 -mattr=+sse2 | grep pinsrw
2
3; Test to make sure we actually insert the bottom element of the vector
4define <8 x i16> @a(<8 x i16> %a) nounwind {
5entry:
6 shufflevector <8 x i16> %a, <8 x i16> zeroinitializer, <8 x i32> < i32 0, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8 >
7 %add = add <8 x i16> %0, %a
8 ret <8 x i16> %add
9}
10