blob: f889e8f279ecc50daebab24be33653fdebd85b38 [file] [log] [blame]
Evan Cheng75184a92007-12-11 01:46:18 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
2; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movlhps | count 1
3; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movss | count 1
4; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pshufd | count 1
5; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pshuflw | count 1
6; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pshufhw | count 1
7
Evan Chengbf8b2c52008-04-05 00:30:36 +00008define <8 x i16> @t1(<8 x i16> %A, <8 x i16> %B) nounwind {
Evan Cheng75184a92007-12-11 01:46:18 +00009 %tmp = shufflevector <8 x i16> %A, <8 x i16> %B, <8 x i32> < i32 8, i32 9, i32 0, i32 1, i32 10, i32 11, i32 2, i32 3 >
10 ret <8 x i16> %tmp
11}
12
Evan Chengbf8b2c52008-04-05 00:30:36 +000013define <8 x i16> @t2(<8 x i16> %A, <8 x i16> %B) nounwind {
Evan Cheng75184a92007-12-11 01:46:18 +000014 %tmp = shufflevector <8 x i16> %A, <8 x i16> %B, <8 x i32> < i32 8, i32 9, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7 >
15 ret <8 x i16> %tmp
16}
17
Evan Chengbf8b2c52008-04-05 00:30:36 +000018define <8 x i16> @t3(<8 x i16> %A, <8 x i16> %B) nounwind {
Evan Cheng75184a92007-12-11 01:46:18 +000019 %tmp = shufflevector <8 x i16> %A, <8 x i16> %B, <8 x i32> < i32 0, i32 0, i32 3, i32 2, i32 4, i32 6, i32 4, i32 7 >
20 ret <8 x i16> %tmp
21}