]> granicus.if.org Git - clang/commitdiff
[X86] Fix a few intrinsic tests to use the return type that matches the intrinsic...
authorCraig Topper <craig.topper@gmail.com>
Tue, 17 May 2016 03:42:37 +0000 (03:42 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 17 May 2016 03:42:37 +0000 (03:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269735 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/sse-builtins.c

index 0f964e8055997354601dc57e1d2014dbdeb5511a..5814532dc5576c76af6e0c23b7c7abbcc09f8ea8 100644 (file)
@@ -454,25 +454,25 @@ __m128d test_mm_cmpnge_pd(__m128d __a, __m128d __b) {
   return _mm_cmpnge_pd(__a, __b);
 }
 
-__m128 test_mm_slli_si128(__m128 a) {
+__m128i test_mm_slli_si128(__m128 a) {
   // CHECK-LABEL: @test_mm_slli_si128
   // CHECK: shufflevector <16 x i8> {{.*}}, <16 x i8> {{.*}}, <16 x i32> <i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26>
   return _mm_slli_si128(a, 5);
 }
 
-__m128 test_mm_bslli_si128(__m128 a) {
+__m128i test_mm_bslli_si128(__m128 a) {
   // CHECK-LABEL: @test_mm_bslli_si128
   // CHECK: shufflevector <16 x i8> {{.*}}, <16 x i8> {{.*}}, <16 x i32> <i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26>
   return _mm_bslli_si128(a, 5);
 }
 
-__m128 test_mm_srli_si128(__m128 a) {
+__m128i test_mm_srli_si128(__m128 a) {
   // CHECK-LABEL: @test_mm_srli_si128
   // CHECK: shufflevector <16 x i8> {{.*}}, <16 x i8> {{.*}}, <16 x i32> <i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20>
   return _mm_srli_si128(a, 5);
 }
 
-__m128 test_mm_bsrli_si128(__m128 a) {
+__m128i test_mm_bsrli_si128(__m128 a) {
   // CHECK-LABEL: @test_mm_bsrli_si128
   // CHECK: shufflevector <16 x i8> {{.*}}, <16 x i8> {{.*}}, <16 x i32> <i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20>
   return _mm_bsrli_si128(a, 5);