1 // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-apple-macosx10.9.0 -emit-llvm -o - | FileCheck %s
4 // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-apple-macosx10.9.0 -emit-llvm -o - \
5 // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -isystem %S/Inputs/include \
7 // REQUIRES: x86-registered-target
10 // CHECK: @c ={{.*}} global i8 0, align 16
13 // Make sure the last step of _mm_cvtps_pi16 converts <4 x i32> to <4 x i16> by
14 // checking that clang emits PACKSSDW instead of PACKSSWB.
16 // CHECK: define{{.*}} i64 @test_mm_cvtps_pi16
17 // CHECK: call x86_mmx @llvm.x86.mmx.packssdw
19 __m64
test_mm_cvtps_pi16(__m128 a
) {
20 return _mm_cvtps_pi16(a
);
23 // Make sure that including <xmmintrin.h> also makes <emmintrin.h>'s content available.
24 // This is an ugly hack for GCC compatibility.
25 __m128d
test_xmmintrin_provides_emmintrin(__m128d __a
, __m128d __b
) {
26 return _mm_add_sd(__a
, __b
);
30 // Make sure stdlib.h symbols are accessible.