1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i386-apple-darwin10 -mcpu=corei7-avx -mattr=+avx | FileCheck %s
4 ;; Check that FP_TO_SINT and FP_TO_UINT generate convert with truncate
6 define <4 x i8> @test1(<4 x double> %d) {
9 ; CHECK-NEXT: vcvttpd2dq %ymm0, %xmm0
10 ; CHECK-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u]
11 ; CHECK-NEXT: vzeroupper
13 %c = fptoui <4 x double> %d to <4 x i8>
16 define <4 x i8> @test2(<4 x double> %d) {
19 ; CHECK-NEXT: vcvttpd2dq %ymm0, %xmm0
20 ; CHECK-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u]
21 ; CHECK-NEXT: vzeroupper
23 %c = fptosi <4 x double> %d to <4 x i8>