[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / mmx-shift-with-immediate.c
blob741cb9c9c5ecf26a0f5e1ce1d0920e71a3d2b592
1 // RUN: %clang_cc1 -emit-llvm -triple i386 -target-feature +sse2 %s -o - | FileCheck %s
2 #include <mmintrin.h>
4 void shift(__m64 a, __m64 b, int c) {
5 // CHECK: <8 x i16> @llvm.x86.sse2.pslli.w(<8 x i16> %{{.*}}, i32 {{.*}})
6 _mm_slli_pi16(a, c);
7 // CHECK: <4 x i32> @llvm.x86.sse2.pslli.d(<4 x i32> %{{.*}}, i32 {{.*}})
8 _mm_slli_pi32(a, c);
9 // CHECK: <2 x i64> @llvm.x86.sse2.pslli.q(<2 x i64> %{{.*}}, i32 {{.*}})
10 _mm_slli_si64(a, c);
12 // CHECK: <8 x i16> @llvm.x86.sse2.psrli.w(<8 x i16> %{{.*}}, i32 {{.*}})
13 _mm_srli_pi16(a, c);
14 // CHECK: <4 x i32> @llvm.x86.sse2.psrli.d(<4 x i32> %{{.*}}, i32 {{.*}})
15 _mm_srli_pi32(a, c);
16 // CHECK: <2 x i64> @llvm.x86.sse2.psrli.q(<2 x i64> %{{.*}}, i32 {{.*}})
17 _mm_srli_si64(a, c);
19 // CHECK: <8 x i16> @llvm.x86.sse2.psrai.w(<8 x i16> %{{.*}}, i32 {{.*}})
20 _mm_srai_pi16(a, c);
21 // CHECK: <4 x i32> @llvm.x86.sse2.psrai.d(<4 x i32> %{{.*}}, i32 {{.*}})
22 _mm_srai_pi32(a, c);