1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
3 define <4 x i32> @trunc_64_32(<4 x i64> %A) nounwind uwtable readnone ssp{
6 %B = trunc <4 x i64> %A to <4 x i32>
9 define <8 x i16> @trunc_32_16(<8 x i32> %A) nounwind uwtable readnone ssp{
12 %B = trunc <8 x i32> %A to <8 x i16>
16 define <8 x i16> @trunc_after_setcc(<8 x float> %a, <8 x float> %b, <8 x float> %c, <8 x float> %d) {
17 ; CHECK: trunc_after_setcc
24 %res1 = fcmp olt <8 x float> %a, %b
25 %res2 = fcmp olt <8 x float> %c, %d
26 %andr = and <8 x i1>%res1, %res2
27 %ex = zext <8 x i1> %andr to <8 x i16>