mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
2f3377ea54
llvm-svn: 189472
89 lines
3.3 KiB
LLVM
89 lines
3.3 KiB
LLVM
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
|
|
|
|
declare i32 @llvm.x86.avx512.kortestz(i16, i16) nounwind readnone
|
|
; CHECK: test_x86_avx3_kortestz
|
|
; CHECK: kortestw
|
|
; CHECK: sete
|
|
define i32 @test_x86_avx3_kortestz(i16 %a0, i16 %a1) {
|
|
%res = call i32 @llvm.x86.avx512.kortestz(i16 %a0, i16 %a1)
|
|
ret i32 %res
|
|
}
|
|
|
|
declare i32 @llvm.x86.avx512.kortestc(i16, i16) nounwind readnone
|
|
; CHECK: test_x86_avx3_kortestc
|
|
; CHECK: kortestw
|
|
; CHECK: sbbl
|
|
define i32 @test_x86_avx3_kortestc(i16 %a0, i16 %a1) {
|
|
%res = call i32 @llvm.x86.avx512.kortestc(i16 %a0, i16 %a1)
|
|
ret i32 %res
|
|
}
|
|
|
|
define <16 x float> @test_x86_avx3_rcp_ps_512(<16 x float> %a0) {
|
|
; CHECK: vrcp14ps
|
|
%res = call <16 x float> @llvm.x86.avx512.rcp14.ps.512(<16 x float> %a0) ; <<16 x float>> [#uses=1]
|
|
ret <16 x float> %res
|
|
}
|
|
declare <16 x float> @llvm.x86.avx512.rcp14.ps.512(<16 x float>) nounwind readnone
|
|
|
|
define <8 x double> @test_x86_avx3_rcp_pd_512(<8 x double> %a0) {
|
|
; CHECK: vrcp14pd
|
|
%res = call <8 x double> @llvm.x86.avx512.rcp14.pd.512(<8 x double> %a0) ; <<8 x double>> [#uses=1]
|
|
ret <8 x double> %res
|
|
}
|
|
declare <8 x double> @llvm.x86.avx512.rcp14.pd.512(<8 x double>) nounwind readnone
|
|
|
|
|
|
define <8 x double> @test_x86_avx3_rndscale_pd_512(<8 x double> %a0) {
|
|
; CHECK: vrndscale
|
|
%res = call <8 x double> @llvm.x86.avx512.rndscale.pd.512(<8 x double> %a0, i32 7) ; <<8 x double>> [#uses=1]
|
|
ret <8 x double> %res
|
|
}
|
|
declare <8 x double> @llvm.x86.avx512.rndscale.pd.512(<8 x double>, i32) nounwind readnone
|
|
|
|
|
|
define <16 x float> @test_x86_avx3_rndscale_ps_512(<16 x float> %a0) {
|
|
; CHECK: vrndscale
|
|
%res = call <16 x float> @llvm.x86.avx512.rndscale.ps.512(<16 x float> %a0, i32 7) ; <<16 x float>> [#uses=1]
|
|
ret <16 x float> %res
|
|
}
|
|
declare <16 x float> @llvm.x86.avx512.rndscale.ps.512(<16 x float>, i32) nounwind readnone
|
|
|
|
|
|
define <16 x float> @test_x86_avx3_rsqrt_ps_512(<16 x float> %a0) {
|
|
; CHECK: vrsqrt14ps
|
|
%res = call <16 x float> @llvm.x86.avx512.rsqrt14.ps.512(<16 x float> %a0) ; <<16 x float>> [#uses=1]
|
|
ret <16 x float> %res
|
|
}
|
|
declare <16 x float> @llvm.x86.avx512.rsqrt14.ps.512(<16 x float>) nounwind readnone
|
|
|
|
|
|
define <8 x double> @test_x86_avx3_sqrt_pd_512(<8 x double> %a0) {
|
|
; CHECK: vsqrtpd
|
|
%res = call <8 x double> @llvm.x86.avx512.sqrt.pd.512(<8 x double> %a0) ; <<8 x double>> [#uses=1]
|
|
ret <8 x double> %res
|
|
}
|
|
declare <8 x double> @llvm.x86.avx512.sqrt.pd.512(<8 x double>) nounwind readnone
|
|
|
|
|
|
define <16 x float> @test_x86_avx3_sqrt_ps_512(<16 x float> %a0) {
|
|
; CHECK: vsqrtps
|
|
%res = call <16 x float> @llvm.x86.avx512.sqrt.ps.512(<16 x float> %a0) ; <<16 x float>> [#uses=1]
|
|
ret <16 x float> %res
|
|
}
|
|
declare <16 x float> @llvm.x86.avx512.sqrt.ps.512(<16 x float>) nounwind readnone
|
|
|
|
define <4 x float> @test_x86_avx3_sqrt_ss(<4 x float> %a0, <4 x float> %a1) {
|
|
; CHECK: vsqrtssz
|
|
%res = call <4 x float> @llvm.x86.avx512.sqrt.ss(<4 x float> %a0, <4 x float> %a1) ; <<4 x float>> [#uses=1]
|
|
ret <4 x float> %res
|
|
}
|
|
declare <4 x float> @llvm.x86.avx512.sqrt.ss(<4 x float>, <4 x float>) nounwind readnone
|
|
|
|
define <2 x double> @test_x86_avx3_sqrt_sd(<2 x double> %a0, <2 x double> %a1) {
|
|
; CHECK: vsqrtsdz
|
|
%res = call <2 x double> @llvm.x86.avx512.sqrt.sd(<2 x double> %a0, <2 x double> %a1) ; <<2 x double>> [#uses=1]
|
|
ret <2 x double> %res
|
|
}
|
|
declare <2 x double> @llvm.x86.avx512.sqrt.sd(<2 x double>, <2 x double>) nounwind readnone
|
|
|