blob: 66f9065799e58813247428c4b97723f4e89f27dd [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mcpu=i386 -mattr=+sse2 | grep pinsrw
Eli Friedman12ca3fe2008-06-19 06:09:51 +00002
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