blob: dd0e268c3cf761f8b72d14b4fbfd521fbe6cb0f4 [file] [log] [blame]
Elena Demikhovsky3ae98152012-02-01 07:56:44 +00001; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2
3define <4 x i32> @trunc_64_32(<4 x i64> %A) nounwind uwtable readnone ssp{
4; CHECK: trunc_64_32
5; CHECK: pshufd
6 %B = trunc <4 x i64> %A to <4 x i32>
7 ret <4 x i32>%B
8}
9define <8 x i16> @trunc_32_16(<8 x i32> %A) nounwind uwtable readnone ssp{
10; CHECK: trunc_32_16
11; CHECK: pshufb
12 %B = trunc <8 x i32> %A to <8 x i16>
13 ret <8 x i16>%B
14}
15