2013-08-28 11:21:58 +00:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
|
|
|
|
|
|
|
|
declare i32 @llvm.x86.avx512.kortestz(i16, i16) nounwind readnone
|
2013-10-09 08:16:14 +00:00
|
|
|
; CHECK: test_kortestz
|
2013-08-28 11:21:58 +00:00
|
|
|
; CHECK: kortestw
|
|
|
|
; CHECK: sete
|
2013-10-09 08:16:14 +00:00
|
|
|
define i32 @test_kortestz(i16 %a0, i16 %a1) {
|
2013-08-28 11:21:58 +00:00
|
|
|
%res = call i32 @llvm.x86.avx512.kortestz(i16 %a0, i16 %a1)
|
|
|
|
ret i32 %res
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @llvm.x86.avx512.kortestc(i16, i16) nounwind readnone
|
2013-10-09 08:16:14 +00:00
|
|
|
; CHECK: test_kortestc
|
2013-08-28 11:21:58 +00:00
|
|
|
; CHECK: kortestw
|
|
|
|
; CHECK: sbbl
|
2013-10-09 08:16:14 +00:00
|
|
|
define i32 @test_kortestc(i16 %a0, i16 %a1) {
|
2013-08-28 11:21:58 +00:00
|
|
|
%res = call i32 @llvm.x86.avx512.kortestc(i16 %a0, i16 %a1)
|
|
|
|
ret i32 %res
|
|
|
|
}
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <16 x float> @test_rcp_ps_512(<16 x float> %a0) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <8 x double> @test_rcp_pd_512(<8 x double> %a0) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <16 x float> @test_rcp28_ps_512(<16 x float> %a0) {
|
|
|
|
; CHECK: vrcp28ps
|
|
|
|
%res = call <16 x float> @llvm.x86.avx512.rcp28.ps.512(<16 x float> %a0) ; <<16 x float>> [#uses=1]
|
|
|
|
ret <16 x float> %res
|
|
|
|
}
|
|
|
|
declare <16 x float> @llvm.x86.avx512.rcp28.ps.512(<16 x float>) nounwind readnone
|
|
|
|
|
|
|
|
define <8 x double> @test_rcp28_pd_512(<8 x double> %a0) {
|
|
|
|
; CHECK: vrcp28pd
|
|
|
|
%res = call <8 x double> @llvm.x86.avx512.rcp28.pd.512(<8 x double> %a0) ; <<8 x double>> [#uses=1]
|
|
|
|
ret <8 x double> %res
|
|
|
|
}
|
|
|
|
declare <8 x double> @llvm.x86.avx512.rcp28.pd.512(<8 x double>) nounwind readnone
|
2013-08-28 11:21:58 +00:00
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <8 x double> @test_rndscale_pd_512(<8 x double> %a0) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <16 x float> @test_rndscale_ps_512(<16 x float> %a0) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <16 x float> @test_rsqrt_ps_512(<16 x float> %a0) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <16 x float> @test_rsqrt28_ps_512(<16 x float> %a0) {
|
|
|
|
; CHECK: vrsqrt28ps
|
|
|
|
%res = call <16 x float> @llvm.x86.avx512.rsqrt28.ps.512(<16 x float> %a0) ; <<16 x float>> [#uses=1]
|
|
|
|
ret <16 x float> %res
|
|
|
|
}
|
|
|
|
declare <16 x float> @llvm.x86.avx512.rsqrt28.ps.512(<16 x float>) nounwind readnone
|
|
|
|
|
|
|
|
define <4 x float> @test_rsqrt14_ss(<4 x float> %a0) {
|
|
|
|
; CHECK: vrsqrt14ss
|
|
|
|
%res = call <4 x float> @llvm.x86.avx512.rsqrt14.ss(<4 x float> %a0) ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %res
|
|
|
|
}
|
|
|
|
declare <4 x float> @llvm.x86.avx512.rsqrt14.ss(<4 x float>) nounwind readnone
|
|
|
|
|
|
|
|
define <4 x float> @test_rsqrt28_ss(<4 x float> %a0) {
|
|
|
|
; CHECK: vrsqrt28ss
|
|
|
|
%res = call <4 x float> @llvm.x86.avx512.rsqrt28.ss(<4 x float> %a0) ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %res
|
|
|
|
}
|
|
|
|
declare <4 x float> @llvm.x86.avx512.rsqrt28.ss(<4 x float>) nounwind readnone
|
|
|
|
|
|
|
|
define <4 x float> @test_rcp14_ss(<4 x float> %a0) {
|
|
|
|
; CHECK: vrcp14ss
|
|
|
|
%res = call <4 x float> @llvm.x86.avx512.rcp14.ss(<4 x float> %a0) ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %res
|
|
|
|
}
|
|
|
|
declare <4 x float> @llvm.x86.avx512.rcp14.ss(<4 x float>) nounwind readnone
|
|
|
|
|
|
|
|
define <4 x float> @test_rcp28_ss(<4 x float> %a0) {
|
|
|
|
; CHECK: vrcp28ss
|
|
|
|
%res = call <4 x float> @llvm.x86.avx512.rcp28.ss(<4 x float> %a0) ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %res
|
|
|
|
}
|
|
|
|
declare <4 x float> @llvm.x86.avx512.rcp28.ss(<4 x float>) nounwind readnone
|
2013-08-28 11:21:58 +00:00
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <8 x double> @test_sqrt_pd_512(<8 x double> %a0) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <16 x float> @test_sqrt_ps_512(<16 x float> %a0) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <4 x float> @test_sqrt_ss(<4 x float> %a0, <4 x float> %a1) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
2013-10-09 08:16:14 +00:00
|
|
|
define <2 x double> @test_sqrt_sd(<2 x double> %a0, <2 x double> %a1) {
|
2013-08-28 11:21:58 +00:00
|
|
|
; 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
|
|
|
|
|
2013-10-06 13:11:09 +00:00
|
|
|
define i64 @test_x86_sse2_cvtsd2si64(<2 x double> %a0) {
|
|
|
|
; CHECK: vcvtsd2siz
|
|
|
|
%res = call i64 @llvm.x86.sse2.cvtsd2si64(<2 x double> %a0) ; <i64> [#uses=1]
|
|
|
|
ret i64 %res
|
|
|
|
}
|
|
|
|
declare i64 @llvm.x86.sse2.cvtsd2si64(<2 x double>) nounwind readnone
|
|
|
|
|
|
|
|
define <2 x double> @test_x86_sse2_cvtsi642sd(<2 x double> %a0, i64 %a1) {
|
|
|
|
; CHECK: vcvtsi2sdqz
|
|
|
|
%res = call <2 x double> @llvm.x86.sse2.cvtsi642sd(<2 x double> %a0, i64 %a1) ; <<2 x double>> [#uses=1]
|
|
|
|
ret <2 x double> %res
|
|
|
|
}
|
|
|
|
declare <2 x double> @llvm.x86.sse2.cvtsi642sd(<2 x double>, i64) nounwind readnone
|
|
|
|
|
|
|
|
define <2 x double> @test_x86_avx512_cvtusi642sd(<2 x double> %a0, i64 %a1) {
|
|
|
|
; CHECK: vcvtusi2sdqz
|
|
|
|
%res = call <2 x double> @llvm.x86.avx512.cvtusi642sd(<2 x double> %a0, i64 %a1) ; <<2 x double>> [#uses=1]
|
|
|
|
ret <2 x double> %res
|
|
|
|
}
|
|
|
|
declare <2 x double> @llvm.x86.avx512.cvtusi642sd(<2 x double>, i64) nounwind readnone
|
|
|
|
|
|
|
|
define i64 @test_x86_sse2_cvttsd2si64(<2 x double> %a0) {
|
|
|
|
; CHECK: vcvttsd2siz
|
|
|
|
%res = call i64 @llvm.x86.sse2.cvttsd2si64(<2 x double> %a0) ; <i64> [#uses=1]
|
|
|
|
ret i64 %res
|
|
|
|
}
|
|
|
|
declare i64 @llvm.x86.sse2.cvttsd2si64(<2 x double>) nounwind readnone
|
|
|
|
|
|
|
|
|
|
|
|
define i64 @test_x86_sse_cvtss2si64(<4 x float> %a0) {
|
|
|
|
; CHECK: vcvtss2siz
|
|
|
|
%res = call i64 @llvm.x86.sse.cvtss2si64(<4 x float> %a0) ; <i64> [#uses=1]
|
|
|
|
ret i64 %res
|
|
|
|
}
|
|
|
|
declare i64 @llvm.x86.sse.cvtss2si64(<4 x float>) nounwind readnone
|
|
|
|
|
|
|
|
|
|
|
|
define <4 x float> @test_x86_sse_cvtsi642ss(<4 x float> %a0, i64 %a1) {
|
|
|
|
; CHECK: vcvtsi2ssqz
|
|
|
|
%res = call <4 x float> @llvm.x86.sse.cvtsi642ss(<4 x float> %a0, i64 %a1) ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %res
|
|
|
|
}
|
|
|
|
declare <4 x float> @llvm.x86.sse.cvtsi642ss(<4 x float>, i64) nounwind readnone
|
|
|
|
|
|
|
|
|
|
|
|
define i64 @test_x86_sse_cvttss2si64(<4 x float> %a0) {
|
|
|
|
; CHECK: vcvttss2siz
|
|
|
|
%res = call i64 @llvm.x86.sse.cvttss2si64(<4 x float> %a0) ; <i64> [#uses=1]
|
|
|
|
ret i64 %res
|
|
|
|
}
|
|
|
|
declare i64 @llvm.x86.sse.cvttss2si64(<4 x float>) nounwind readnone
|
|
|
|
|
|
|
|
define i64 @test_x86_avx512_cvtsd2usi64(<2 x double> %a0) {
|
|
|
|
; CHECK: vcvtsd2usiz
|
|
|
|
%res = call i64 @llvm.x86.avx512.cvtsd2usi64(<2 x double> %a0) ; <i64> [#uses=1]
|
|
|
|
ret i64 %res
|
|
|
|
}
|
|
|
|
declare i64 @llvm.x86.avx512.cvtsd2usi64(<2 x double>) nounwind readnone
|
2013-10-24 07:16:35 +00:00
|
|
|
|
|
|
|
define <16 x float> @test_x86_vcvtph2ps_512(<16 x i16> %a0) {
|
|
|
|
; CHECK: vcvtph2ps
|
|
|
|
%res = call <16 x float> @llvm.x86.avx512.vcvtph2ps.512(<16 x i16> %a0)
|
|
|
|
ret <16 x float> %res
|
|
|
|
}
|
|
|
|
declare <16 x float> @llvm.x86.avx512.vcvtph2ps.512(<16 x i16>) nounwind readonly
|
|
|
|
|
|
|
|
|
|
|
|
define <16 x i16> @test_x86_vcvtps2ph_256(<16 x float> %a0) {
|
|
|
|
; CHECK: vcvtps2ph
|
|
|
|
%res = call <16 x i16> @llvm.x86.avx512.vcvtps2ph.512(<16 x float> %a0, i32 0)
|
|
|
|
ret <16 x i16> %res
|
|
|
|
}
|
|
|
|
declare <16 x i16> @llvm.x86.avx512.vcvtps2ph.512(<16 x float>, i32) nounwind readonly
|
2013-10-25 17:47:18 +00:00
|
|
|
|
|
|
|
define <16 x float> @test_x86_vbroadcast_ss_512(i8* %a0) {
|
|
|
|
; CHECK: vbroadcastss
|
|
|
|
%res = call <16 x float> @llvm.x86.avx512.vbroadcast.ss.512(i8* %a0) ; <<16 x float>> [#uses=1]
|
|
|
|
ret <16 x float> %res
|
|
|
|
}
|
|
|
|
declare <16 x float> @llvm.x86.avx512.vbroadcast.ss.512(i8*) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x double> @test_x86_vbroadcast_sd_512(i8* %a0) {
|
|
|
|
; CHECK: vbroadcastsd
|
|
|
|
%res = call <8 x double> @llvm.x86.avx512.vbroadcast.sd.512(i8* %a0) ; <<8 x double>> [#uses=1]
|
|
|
|
ret <8 x double> %res
|
|
|
|
}
|
|
|
|
declare <8 x double> @llvm.x86.avx512.vbroadcast.sd.512(i8*) nounwind readonly
|
2013-10-25 18:04:12 +00:00
|
|
|
|
|
|
|
define <16 x float> @test_x86_vbroadcast_ss_ps_512(<4 x float> %a0) {
|
|
|
|
; CHECK: vbroadcastss
|
|
|
|
%res = call <16 x float> @llvm.x86.avx512.vbroadcast.ss.ps.512(<4 x float> %a0) ; <<16 x float>> [#uses=1]
|
|
|
|
ret <16 x float> %res
|
|
|
|
}
|
|
|
|
declare <16 x float> @llvm.x86.avx512.vbroadcast.ss.ps.512(<4 x float>) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x double> @test_x86_vbroadcast_sd_pd_512(<2 x double> %a0) {
|
|
|
|
; CHECK: vbroadcastsd
|
|
|
|
%res = call <8 x double> @llvm.x86.avx512.vbroadcast.sd.pd.512(<2 x double> %a0) ; <<8 x double>> [#uses=1]
|
|
|
|
ret <8 x double> %res
|
|
|
|
}
|
|
|
|
declare <8 x double> @llvm.x86.avx512.vbroadcast.sd.pd.512(<2 x double>) nounwind readonly
|
2013-10-27 08:18:37 +00:00
|
|
|
|
2013-10-31 13:56:31 +00:00
|
|
|
define <16 x i32> @test_x86_pbroadcastd_512(<4 x i32> %a0) {
|
|
|
|
; CHECK: vpbroadcastd
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.pbroadcastd.512(<4 x i32> %a0) ; <<16 x i32>> [#uses=1]
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.pbroadcastd.512(<4 x i32>) nounwind readonly
|
|
|
|
|
|
|
|
define <16 x i32> @test_x86_pbroadcastd_i32_512(i32 %a0) {
|
|
|
|
; CHECK: vpbroadcastd
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.pbroadcastd.i32.512(i32 %a0) ; <<16 x i32>> [#uses=1]
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.pbroadcastd.i32.512(i32) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_x86_pbroadcastq_512(<2 x i64> %a0) {
|
|
|
|
; CHECK: vpbroadcastq
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.pbroadcastq.512(<2 x i64> %a0) ; <<8 x i64>> [#uses=1]
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.pbroadcastq.512(<2 x i64>) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_x86_pbroadcastq_i64_512(i64 %a0) {
|
|
|
|
; CHECK: vpbroadcastq
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.pbroadcastq.i64.512(i64 %a0) ; <<8 x i64>> [#uses=1]
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.pbroadcastq.i64.512(i64) nounwind readonly
|
|
|
|
|
2013-10-27 08:18:37 +00:00
|
|
|
define <16 x i32> @test_x86_pmaxu_d(<16 x i32> %a0, <16 x i32> %a1) {
|
|
|
|
; CHECK: vpmaxud
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.pmaxu.d(<16 x i32> %a0, <16 x i32> %a1) ; <<16 x i32>> [#uses=1]
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.pmaxu.d(<16 x i32>, <16 x i32>) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_x86_pmaxu_q(<8 x i64> %a0, <8 x i64> %a1) {
|
|
|
|
; CHECK: vpmaxuq
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.pmaxu.q(<8 x i64> %a0, <8 x i64> %a1) ; <<8 x i64>> [#uses=1]
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.pmaxu.q(<8 x i64>, <8 x i64>) nounwind readonly
|
|
|
|
|
|
|
|
define <16 x i32> @test_x86_pmaxs_d(<16 x i32> %a0, <16 x i32> %a1) {
|
|
|
|
; CHECK: vpmaxsd
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.pmaxs.d(<16 x i32> %a0, <16 x i32> %a1) ; <<16 x i32>> [#uses=1]
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.pmaxs.d(<16 x i32>, <16 x i32>) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_x86_pmaxs_q(<8 x i64> %a0, <8 x i64> %a1) {
|
|
|
|
; CHECK: vpmaxsq
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.pmaxs.q(<8 x i64> %a0, <8 x i64> %a1) ; <<8 x i64>> [#uses=1]
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.pmaxs.q(<8 x i64>, <8 x i64>) nounwind readonly
|
|
|
|
|
|
|
|
define <16 x i32> @test_x86_pminu_d(<16 x i32> %a0, <16 x i32> %a1) {
|
|
|
|
; CHECK: vpminud
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.pminu.d(<16 x i32> %a0, <16 x i32> %a1) ; <<16 x i32>> [#uses=1]
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.pminu.d(<16 x i32>, <16 x i32>) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_x86_pminu_q(<8 x i64> %a0, <8 x i64> %a1) {
|
|
|
|
; CHECK: vpminuq
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.pminu.q(<8 x i64> %a0, <8 x i64> %a1) ; <<8 x i64>> [#uses=1]
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.pminu.q(<8 x i64>, <8 x i64>) nounwind readonly
|
|
|
|
|
|
|
|
define <16 x i32> @test_x86_pmins_d(<16 x i32> %a0, <16 x i32> %a1) {
|
|
|
|
; CHECK: vpminsd
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.pmins.d(<16 x i32> %a0, <16 x i32> %a1) ; <<16 x i32>> [#uses=1]
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.pmins.d(<16 x i32>, <16 x i32>) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_x86_pmins_q(<8 x i64> %a0, <8 x i64> %a1) {
|
|
|
|
; CHECK: vpminsq
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.pmins.q(<8 x i64> %a0, <8 x i64> %a1) ; <<8 x i64>> [#uses=1]
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.pmins.q(<8 x i64>, <8 x i64>) nounwind readonly
|
2013-11-03 13:46:31 +00:00
|
|
|
|
|
|
|
define <16 x i32> @test_conflict_d(<16 x i32> %a) {
|
|
|
|
; CHECK: vpconflictd
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.conflict.d.512(<16 x i32> %a)
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.conflict.d.512(<16 x i32>) nounwind readonly
|
|
|
|
|
|
|
|
define <16 x i32> @test_maskz_conflict_d(<16 x i32> %a, i16 %mask) {
|
|
|
|
; CHECK: vpconflictd %zmm0, %zmm0 {%k1} {z}
|
|
|
|
%vmask = bitcast i16 %mask to <16 x i1>
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.conflict.d.maskz.512(<16 x i1> %vmask, <16 x i32> %a)
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.conflict.d.maskz.512(<16 x i1>,<16 x i32>) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_mask_conflict_q(<8 x i64> %a, <8 x i64> %b, i8 %mask) {
|
|
|
|
; CHECK: vpconflictq {{.*}} {%k1}
|
|
|
|
%vmask = bitcast i8 %mask to <8 x i1>
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.conflict.q.mask.512(<8 x i64> %b, <8 x i1> %vmask, <8 x i64> %a)
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.conflict.q.mask.512(<8 x i64>, <8 x i1>,<8 x i64>) nounwind readonly
|
2013-11-04 19:14:56 +00:00
|
|
|
|
|
|
|
define <16 x float> @test_x86_mskblend_ps_512(i16 %a0, <16 x float> %a1, <16 x float> %a2) {
|
|
|
|
; CHECK: vblendmps
|
|
|
|
%m0 = bitcast i16 %a0 to <16 x i1>
|
|
|
|
%res = call <16 x float> @llvm.x86.avx512.mskblend.ps.512(<16 x i1> %m0, <16 x float> %a1, <16 x float> %a2) ; <<16 x float>> [#uses=1]
|
|
|
|
ret <16 x float> %res
|
|
|
|
}
|
|
|
|
declare <16 x float> @llvm.x86.avx512.mskblend.ps.512(<16 x i1> %a0, <16 x float> %a1, <16 x float> %a2) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x double> @test_x86_mskblend_pd_512(i8 %a0, <8 x double> %a1, <8 x double> %a2) {
|
|
|
|
; CHECK: vblendmpd
|
|
|
|
%m0 = bitcast i8 %a0 to <8 x i1>
|
|
|
|
%res = call <8 x double> @llvm.x86.avx512.mskblend.pd.512(<8 x i1> %m0, <8 x double> %a1, <8 x double> %a2) ; <<8 x double>> [#uses=1]
|
|
|
|
ret <8 x double> %res
|
|
|
|
}
|
|
|
|
declare <8 x double> @llvm.x86.avx512.mskblend.pd.512(<8 x i1> %a0, <8 x double> %a1, <8 x double> %a2) nounwind readonly
|
|
|
|
|
|
|
|
define <16 x i32> @test_x86_mskblend_d_512(i16 %a0, <16 x i32> %a1, <16 x i32> %a2) {
|
|
|
|
; CHECK: vpblendmd
|
|
|
|
%m0 = bitcast i16 %a0 to <16 x i1>
|
|
|
|
%res = call <16 x i32> @llvm.x86.avx512.mskblend.d.512(<16 x i1> %m0, <16 x i32> %a1, <16 x i32> %a2) ; <<16 x i32>> [#uses=1]
|
|
|
|
ret <16 x i32> %res
|
|
|
|
}
|
|
|
|
declare <16 x i32> @llvm.x86.avx512.mskblend.d.512(<16 x i1> %a0, <16 x i32> %a1, <16 x i32> %a2) nounwind readonly
|
|
|
|
|
|
|
|
define <8 x i64> @test_x86_mskblend_q_512(i8 %a0, <8 x i64> %a1, <8 x i64> %a2) {
|
|
|
|
; CHECK: vpblendmq
|
|
|
|
%m0 = bitcast i8 %a0 to <8 x i1>
|
|
|
|
%res = call <8 x i64> @llvm.x86.avx512.mskblend.q.512(<8 x i1> %m0, <8 x i64> %a1, <8 x i64> %a2) ; <<8 x i64>> [#uses=1]
|
|
|
|
ret <8 x i64> %res
|
|
|
|
}
|
|
|
|
declare <8 x i64> @llvm.x86.avx512.mskblend.q.512(<8 x i1> %a0, <8 x i64> %a1, <8 x i64> %a2) nounwind readonly
|