forked from OSchip/llvm-project
50 lines
2.2 KiB
LLVM
50 lines
2.2 KiB
LLVM
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl -mattr=+avx512bw | FileCheck %s --check-prefix=ALL --check-prefix=AVX512BW
|
||
|
; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -mcpu=knl -mattr=+avx512bw | FileCheck %s --check-prefix=ALL --check-prefix=AVX512F-32
|
||
|
|
||
|
declare void @llvm.x86.avx512.mask.storeu.b.512(i8*, <64 x i8>, i64)
|
||
|
|
||
|
define void@test_int_x86_avx512_mask_storeu_b_512(i8* %ptr1, i8* %ptr2, <64 x i8> %x1, i64 %x2) {
|
||
|
; AVX512BW-LABEL: test_int_x86_avx512_mask_storeu_b_512:
|
||
|
; AVX512BW: ## BB#0:
|
||
|
; AVX512BW-NEXT: kmovq %rdx, %k1
|
||
|
; AVX512BW-NEXT: vmovdqu8 %zmm0, (%rdi) {%k1}
|
||
|
; AVX512BW-NEXT: vmovdqu8 %zmm0, (%rsi)
|
||
|
; AVX512BW-NEXT: retq
|
||
|
;
|
||
|
; AVX512F-32-LABEL: test_int_x86_avx512_mask_storeu_b_512:
|
||
|
; AVX512F-32: # BB#0:
|
||
|
; AVX512F-32-NEXT: movl {{[0-9]+}}(%esp), %eax
|
||
|
; AVX512F-32-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
||
|
; AVX512F-32-NEXT: kmovq {{[0-9]+}}(%esp), %k1
|
||
|
; AVX512F-32-NEXT: vmovdqu8 %zmm0, (%ecx) {%k1}
|
||
|
; AVX512F-32-NEXT: vmovdqu8 %zmm0, (%eax)
|
||
|
; AVX512F-32-NEXT: retl
|
||
|
call void @llvm.x86.avx512.mask.storeu.b.512(i8* %ptr1, <64 x i8> %x1, i64 %x2)
|
||
|
call void @llvm.x86.avx512.mask.storeu.b.512(i8* %ptr2, <64 x i8> %x1, i64 -1)
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
declare void @llvm.x86.avx512.mask.storeu.w.512(i8*, <32 x i16>, i32)
|
||
|
|
||
|
define void@test_int_x86_avx512_mask_storeu_w_512(i8* %ptr1, i8* %ptr2, <32 x i16> %x1, i32 %x2) {
|
||
|
; AVX512BW-LABEL: test_int_x86_avx512_mask_storeu_w_512:
|
||
|
; AVX512BW: ## BB#0:
|
||
|
; AVX512BW-NEXT: kmovd %edx, %k1
|
||
|
; AVX512BW-NEXT: vmovdqu16 %zmm0, (%rdi) {%k1}
|
||
|
; AVX512BW-NEXT: vmovdqu16 %zmm0, (%rsi)
|
||
|
; AVX512BW-NEXT: retq
|
||
|
;
|
||
|
; AVX512F-32-LABEL: test_int_x86_avx512_mask_storeu_w_512:
|
||
|
; AVX512F-32: # BB#0:
|
||
|
; AVX512F-32-NEXT: movl {{[0-9]+}}(%esp), %eax
|
||
|
; AVX512F-32-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
||
|
; AVX512F-32-NEXT: kmovd {{[0-9]+}}(%esp), %k1
|
||
|
; AVX512F-32-NEXT: vmovdqu16 %zmm0, (%ecx) {%k1}
|
||
|
; AVX512F-32-NEXT: vmovdqu16 %zmm0, (%eax)
|
||
|
; AVX512F-32-NEXT: retl
|
||
|
call void @llvm.x86.avx512.mask.storeu.w.512(i8* %ptr1, <32 x i16> %x1, i32 %x2)
|
||
|
call void @llvm.x86.avx512.mask.storeu.w.512(i8* %ptr2, <32 x i16> %x1, i32 -1)
|
||
|
ret void
|
||
|
}
|