]> granicus.if.org Git - clang/commitdiff
fixed vperm2* intrinsics to check for shuffles
authorSanjay Patel <spatel@rotateright.com>
Fri, 20 Mar 2015 22:37:20 +0000 (22:37 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 20 Mar 2015 22:37:20 +0000 (22:37 +0000)
This corresponds to llvm r232852:
http://reviews.llvm.org/rL232852

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232857 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/avx-shuffle-builtins.c

index 2800ff89bda8b1371f86db03aec70c92fc5036f2..af4bcbd23ba21fec15bc47be36c8ee69893d5cfd 100644 (file)
@@ -48,19 +48,19 @@ __m256 test_mm256_permute_ps(__m256 a) {
 
 __m256d test_mm256_permute2f128_pd(__m256d a, __m256d b) {
   // Check if the mask is correct
-  // CHECK: @llvm.x86.avx.vperm2f128.pd.256
+  // CHECK: shufflevector{{.*}}<i32 2, i32 3, i32 6, i32 7> 
   return _mm256_permute2f128_pd(a, b, 0x31);
 }
 
 __m256 test_mm256_permute2f128_ps(__m256 a, __m256 b) {
   // Check if the mask is correct
-  // CHECK: @llvm.x86.avx.vperm2f128.ps.256
+  // CHECK: shufflevector{{.*}} <8 x i32> <i32 12, i32 13, i32 14, i32 15, i32 4, i32 5, i32 6, i32 7>
   return _mm256_permute2f128_ps(a, b, 0x13);
 }
 
 __m256i test_mm256_permute2f128_si256(__m256i a, __m256i b) {
   // Check if the mask is correct
-  // CHECK: @llvm.x86.avx.vperm2f128.si.256
+  // CHECK: shufflevector{{.*}} <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 10, i32 11>
   return _mm256_permute2f128_si256(a, b, 0x20);
 }