summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/avx512cd-intrinsics.ll
blob: febd3d69dd18099785d61e7ef18ad4ad0d402911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; 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) ; 
  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) ; 
  ret <8 x i64> %res
}
declare <8 x i64> @llvm.x86.avx512.broadcastmb.512(i8)

OpenPOWER on IntegriCloud