[X86][SSE2] Added _mm_move_* tests

llvm-svn: 270043
This commit is contained in:
Simon Pilgrim 2016-05-19 11:18:49 +00:00
parent cddcd2bd45
commit 97728dfb39
1 changed files with 15 additions and 0 deletions

View File

@ -721,6 +721,21 @@ __m128d test_mm_min_sd(__m128d A, __m128d B) {
return _mm_min_sd(A, B);
}
__m128i test_mm_move_epi64(__m128i A) {
// CHECK-LABEL: test_mm_move_epi64
// CHECK: shufflevector <2 x i64> %{{.*}}, <2 x i64> %{{.*}}, <2 x i32> <i32 0, i32 2>
return _mm_move_epi64(A);
}
__m128d test_mm_move_sd(__m128d A, __m128d B) {
// CHECK-LABEL: test_mm_move_sd
// CHECK: extractelement <2 x double> %{{.*}}, i32 0
// CHECK: insertelement <2 x double> undef, double %{{.*}}, i32 0
// CHECK: extractelement <2 x double> %{{.*}}, i32 1
// CHECK: insertelement <2 x double> %{{.*}}, double %{{.*}}, i32 1
return _mm_move_sd(A, B);
}
int test_mm_movemask_epi8(__m128i A) {
// CHECK-LABEL: test_mm_movemask_epi8
// CHECK: call i32 @llvm.x86.sse2.pmovmskb.128(<16 x i8> %{{.*}})