2016-09-28 19:59:09 +08:00
|
|
|
// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avx512vbmi -emit-llvm -o - -Wall -Werror | FileCheck %s
|
2016-03-08 01:04:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
#include <immintrin.h>
|
|
|
|
|
|
|
|
__m512i test_mm512_mask2_permutex2var_epi8(__m512i __A, __m512i __I, __mmask64 __U, __m512i __B) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask2_permutex2var_epi8
|
2018-05-29 11:26:38 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.vpermi2var.qi.512
|
|
|
|
// CHECK: select <64 x i1> %{{.*}}, <64 x i8> %{{.*}}, <64 x i8> %{{.*}}
|
2016-03-08 01:04:11 +08:00
|
|
|
return _mm512_mask2_permutex2var_epi8(__A, __I, __U, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
__m512i test_mm512_permutex2var_epi8(__m512i __A, __m512i __I, __m512i __B) {
|
|
|
|
// CHECK-LABEL: @test_mm512_permutex2var_epi8
|
2018-05-29 11:26:38 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.vpermi2var.qi.512
|
2016-03-08 01:04:11 +08:00
|
|
|
return _mm512_permutex2var_epi8(__A, __I, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
__m512i test_mm512_mask_permutex2var_epi8(__m512i __A, __mmask64 __U, __m512i __I, __m512i __B) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_permutex2var_epi8
|
2018-05-29 11:26:38 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.vpermi2var.qi.512
|
|
|
|
// CHECK: select <64 x i1> %{{.*}}, <64 x i8> %{{.*}}, <64 x i8> %{{.*}}
|
2016-03-08 01:04:11 +08:00
|
|
|
return _mm512_mask_permutex2var_epi8(__A, __U, __I, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
__m512i test_mm512_maskz_permutex2var_epi8(__mmask64 __U, __m512i __A, __m512i __I, __m512i __B) {
|
|
|
|
// CHECK-LABEL: @test_mm512_maskz_permutex2var_epi8
|
2018-05-29 11:26:38 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.vpermi2var.qi.512
|
|
|
|
// CHECK: select <64 x i1> %{{.*}}, <64 x i8> %{{.*}}, <64 x i8> %{{.*}}
|
2016-03-08 01:04:11 +08:00
|
|
|
return _mm512_maskz_permutex2var_epi8(__U, __A, __I, __B);
|
|
|
|
}
|
|
|
|
|
2016-04-25 13:32:35 +08:00
|
|
|
__m512i test_mm512_permutexvar_epi8(__m512i __A, __m512i __B) {
|
|
|
|
// CHECK-LABEL: @test_mm512_permutexvar_epi8
|
2018-05-21 07:34:10 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.permvar.qi.512
|
2016-04-25 13:32:35 +08:00
|
|
|
return _mm512_permutexvar_epi8(__A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
__m512i test_mm512_maskz_permutexvar_epi8(__mmask64 __M, __m512i __A, __m512i __B) {
|
|
|
|
// CHECK-LABEL: @test_mm512_maskz_permutexvar_epi8
|
2018-05-21 07:34:10 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.permvar.qi.512
|
|
|
|
// CHECK: select <64 x i1> %{{.*}}, <64 x i8> %{{.*}}, <64 x i8> %{{.*}}
|
2016-04-25 13:32:35 +08:00
|
|
|
return _mm512_maskz_permutexvar_epi8(__M, __A, __B);
|
|
|
|
}
|
|
|
|
|
|
|
|
__m512i test_mm512_mask_permutexvar_epi8(__m512i __W, __mmask64 __M, __m512i __A, __m512i __B) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_permutexvar_epi8
|
2018-05-21 07:34:10 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.permvar.qi.512
|
|
|
|
// CHECK: select <64 x i1> %{{.*}}, <64 x i8> %{{.*}}, <64 x i8> %{{.*}}
|
2016-04-25 13:32:35 +08:00
|
|
|
return _mm512_mask_permutexvar_epi8(__W, __M, __A, __B);
|
|
|
|
}
|
2016-05-23 23:04:39 +08:00
|
|
|
|
|
|
|
__m512i test_mm512_mask_multishift_epi64_epi8(__m512i __W, __mmask64 __M, __m512i __X, __m512i __Y) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_multishift_epi64_epi8
|
2019-01-14 16:46:51 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.pmultishift.qb.512
|
|
|
|
// CHECK: select <64 x i1> %{{.*}}, <64 x i8> %{{.*}}, <64 x i8> %{{.*}}
|
2016-05-23 23:04:39 +08:00
|
|
|
return _mm512_mask_multishift_epi64_epi8(__W, __M, __X, __Y);
|
|
|
|
}
|
|
|
|
|
|
|
|
__m512i test_mm512_maskz_multishift_epi64_epi8(__mmask64 __M, __m512i __X, __m512i __Y) {
|
|
|
|
// CHECK-LABEL: @test_mm512_maskz_multishift_epi64_epi8
|
2019-01-14 16:46:51 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.pmultishift.qb.512
|
|
|
|
// CHECK: select <64 x i1> %{{.*}}, <64 x i8> %{{.*}}, <64 x i8> %{{.*}}
|
2016-05-23 23:04:39 +08:00
|
|
|
return _mm512_maskz_multishift_epi64_epi8(__M, __X, __Y);
|
|
|
|
}
|
|
|
|
|
|
|
|
__m512i test_mm512_multishift_epi64_epi8(__m512i __X, __m512i __Y) {
|
|
|
|
// CHECK-LABEL: @test_mm512_multishift_epi64_epi8
|
2019-01-14 16:46:51 +08:00
|
|
|
// CHECK: @llvm.x86.avx512.pmultishift.qb.512
|
2016-05-23 23:04:39 +08:00
|
|
|
return _mm512_multishift_epi64_epi8(__X, __Y);
|
|
|
|
}
|