mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-04 09:11:43 +00:00
[AVX-512] Use update_llc_test_checks.py to generate a test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
193856a80c
commit
e35238cd60
@ -1,17 +1,24 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl -mattr=+avx512cd | FileCheck %s
|
||||
|
||||
define <16 x i32> @test_x86_vbroadcastmw_512(i16 %a0) {
|
||||
; CHECK: test_x86_vbroadcastmw_512
|
||||
; CHECK: vpbroadcastmw2d %k0, %zmm0
|
||||
%res = call <16 x i32> @llvm.x86.avx512.broadcastmw.512(i16 %a0) ;
|
||||
; CHECK-LABEL: test_x86_vbroadcastmw_512:
|
||||
; CHECK: ## BB#0:
|
||||
; CHECK-NEXT: kmovw %edi, %k0
|
||||
; CHECK-NEXT: vpbroadcastmw2d %k0, %zmm0
|
||||
; CHECK-NEXT: retq
|
||||
%res = call <16 x i32> @llvm.x86.avx512.broadcastmw.512(i16 %a0)
|
||||
ret <16 x i32> %res
|
||||
}
|
||||
declare <16 x i32> @llvm.x86.avx512.broadcastmw.512(i16)
|
||||
|
||||
define <8 x i64> @test_x86_broadcastmb_512(i8 %a0) {
|
||||
; CHECK: test_x86_broadcastmb_512
|
||||
; CHECK: vpbroadcastmb2q %k0, %zmm0
|
||||
%res = call <8 x i64> @llvm.x86.avx512.broadcastmb.512(i8 %a0) ;
|
||||
; CHECK-LABEL: test_x86_broadcastmb_512:
|
||||
; CHECK: ## BB#0:
|
||||
; CHECK-NEXT: kmovw %edi, %k0
|
||||
; CHECK-NEXT: vpbroadcastmb2q %k0, %zmm0
|
||||
; CHECK-NEXT: retq
|
||||
%res = call <8 x i64> @llvm.x86.avx512.broadcastmb.512(i8 %a0)
|
||||
ret <8 x i64> %res
|
||||
}
|
||||
declare <8 x i64> @llvm.x86.avx512.broadcastmb.512(i8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user