2015-04-28 01:03:31 +08:00
|
|
|
//===-- X86IntrinsicsInfo.h - X86 Intrinsics ------------*- C++ -*-===//
|
2014-08-24 17:19:56 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the details for lowering X86 intrinsics
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_X86_X86INTRINSICSINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_X86_X86INTRINSICSINFO_H
|
|
|
|
|
2016-01-28 03:29:56 +08:00
|
|
|
#include "X86ISelLowering.h"
|
|
|
|
#include "X86InstrInfo.h"
|
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
namespace llvm {
|
2014-08-24 17:19:56 +08:00
|
|
|
|
2016-06-04 12:32:17 +08:00
|
|
|
enum IntrinsicType : uint16_t {
|
2016-08-16 14:41:00 +08:00
|
|
|
GATHER, SCATTER, PREFETCH, RDSEED, RDRAND, RDPMC, RDTSC, XTEST, XGETBV, ADX, FPCLASS, FPCLASSS,
|
2016-09-06 13:45:24 +08:00
|
|
|
INTR_TYPE_1OP, INTR_TYPE_2OP, INTR_TYPE_3OP, INTR_TYPE_4OP,
|
2018-07-07 09:04:22 +08:00
|
|
|
INTR_TYPE_2OP_IMM8, INTR_TYPE_3OP_IMM8,
|
2016-11-06 12:12:46 +08:00
|
|
|
CMP_MASK, CMP_MASK_CC,CMP_MASK_SCALAR_CC, VSHIFT, COMI, COMI_RM,
|
|
|
|
CVTPD2PS, CVTPD2PS_MASK,
|
2015-07-25 01:24:15 +08:00
|
|
|
INTR_TYPE_1OP_MASK, INTR_TYPE_1OP_MASK_RM,
|
2018-06-30 09:32:04 +08:00
|
|
|
INTR_TYPE_2OP_MASK, INTR_TYPE_2OP_MASK_RM,
|
2018-06-13 15:19:21 +08:00
|
|
|
INTR_TYPE_3OP_MASK,
|
2018-07-12 08:29:56 +08:00
|
|
|
FMA_OP_MASK, FMA_OP_MASKZ, FMA_OP_SCALAR,
|
2018-05-29 13:22:05 +08:00
|
|
|
IFMA_OP, VPERM_2OP, INTR_TYPE_SCALAR_MASK,
|
2017-11-13 10:02:58 +08:00
|
|
|
INTR_TYPE_SCALAR_MASK_RM, INTR_TYPE_3OP_SCALAR_MASK,
|
2018-06-11 09:25:22 +08:00
|
|
|
COMPRESS_EXPAND_IN_REG,
|
2015-07-25 01:24:15 +08:00
|
|
|
TRUNCATE_TO_MEM_VI8, TRUNCATE_TO_MEM_VI16, TRUNCATE_TO_MEM_VI32,
|
2018-05-22 04:58:09 +08:00
|
|
|
FIXUPIMM, FIXUPIMM_MASKZ, FIXUPIMMS,
|
2018-02-12 06:32:30 +08:00
|
|
|
FIXUPIMMS_MASKZ, GATHER_AVX2,
|
2017-11-13 10:03:00 +08:00
|
|
|
ROUNDP, ROUNDS
|
2014-08-24 17:19:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct IntrinsicData {
|
2014-09-04 14:34:34 +08:00
|
|
|
|
2016-06-04 12:32:17 +08:00
|
|
|
uint16_t Id;
|
2014-08-24 17:19:56 +08:00
|
|
|
IntrinsicType Type;
|
2016-06-04 12:32:17 +08:00
|
|
|
uint16_t Opc0;
|
|
|
|
uint16_t Opc1;
|
2014-08-24 17:19:56 +08:00
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
bool operator<(const IntrinsicData &RHS) const {
|
|
|
|
return Id < RHS.Id;
|
|
|
|
}
|
|
|
|
bool operator==(const IntrinsicData &RHS) const {
|
|
|
|
return RHS.Id == Id;
|
|
|
|
}
|
2018-06-26 04:27:46 +08:00
|
|
|
friend bool operator<(const IntrinsicData &LHS, unsigned Id) {
|
|
|
|
return LHS.Id < Id;
|
|
|
|
}
|
2014-09-04 14:34:34 +08:00
|
|
|
};
|
2014-08-24 17:19:56 +08:00
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
#define X86_INTRINSIC_DATA(id, type, op0, op1) \
|
|
|
|
{ Intrinsic::x86_##id, type, op0, op1 }
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IntrinsicsWithChain - the table should be sorted by Intrinsic ID - in
|
|
|
|
* the alphabetical order.
|
|
|
|
*/
|
|
|
|
static const IntrinsicData IntrinsicsWithChain[] = {
|
2017-03-14 02:34:46 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_d, GATHER_AVX2, X86::VPGATHERDDrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_d_256, GATHER_AVX2, X86::VPGATHERDDYrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_pd, GATHER_AVX2, X86::VGATHERDPDrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_pd_256, GATHER_AVX2, X86::VGATHERDPDYrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_ps, GATHER_AVX2, X86::VGATHERDPSrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_ps_256, GATHER_AVX2, X86::VGATHERDPSYrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_q, GATHER_AVX2, X86::VPGATHERDQrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_d_q_256, GATHER_AVX2, X86::VPGATHERDQYrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_d, GATHER_AVX2, X86::VPGATHERQDrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_d_256, GATHER_AVX2, X86::VPGATHERQDYrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_pd, GATHER_AVX2, X86::VGATHERQPDrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_pd_256, GATHER_AVX2, X86::VGATHERQPDYrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_ps, GATHER_AVX2, X86::VGATHERQPSrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_ps_256, GATHER_AVX2, X86::VGATHERQPSYrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_q, GATHER_AVX2, X86::VPGATHERQQrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_gather_q_q_256, GATHER_AVX2, X86::VPGATHERQQYrm, 0),
|
|
|
|
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_gather_dpd_512, GATHER, X86::VGATHERDPDZrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather_dpi_512, GATHER, X86::VPGATHERDDZrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather_dpq_512, GATHER, X86::VPGATHERDQZrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather_dps_512, GATHER, X86::VGATHERDPSZrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather_qpd_512, GATHER, X86::VGATHERQPDZrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather_qpi_512, GATHER, X86::VPGATHERQDZrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather_qpq_512, GATHER, X86::VPGATHERQQZrm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather_qps_512, GATHER, X86::VGATHERQPSZrm, 0),
|
2015-06-28 18:53:29 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div2_df, GATHER, X86::VGATHERQPDZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div2_di, GATHER, X86::VPGATHERQQZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div4_df, GATHER, X86::VGATHERQPDZ256rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div4_di, GATHER, X86::VPGATHERQQZ256rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div4_sf, GATHER, X86::VGATHERQPSZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div4_si, GATHER, X86::VPGATHERQDZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div8_sf, GATHER, X86::VGATHERQPSZ256rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3div8_si, GATHER, X86::VPGATHERQDZ256rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv2_df, GATHER, X86::VGATHERDPDZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv2_di, GATHER, X86::VPGATHERDQZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv4_df, GATHER, X86::VGATHERDPDZ256rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv4_di, GATHER, X86::VPGATHERDQZ256rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv4_sf, GATHER, X86::VGATHERDPSZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv4_si, GATHER, X86::VPGATHERDDZ128rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv8_sf, GATHER, X86::VGATHERDPSZ256rm, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gather3siv8_si, GATHER, X86::VPGATHERDDZ256rm, 0),
|
2014-12-04 13:20:33 +08:00
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_gatherpf_dpd_512, PREFETCH,
|
|
|
|
X86::VGATHERPF0DPDm, X86::VGATHERPF1DPDm),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gatherpf_dps_512, PREFETCH,
|
|
|
|
X86::VGATHERPF0DPSm, X86::VGATHERPF1DPSm),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gatherpf_qpd_512, PREFETCH,
|
|
|
|
X86::VGATHERPF0QPDm, X86::VGATHERPF1QPDm),
|
|
|
|
X86_INTRINSIC_DATA(avx512_gatherpf_qps_512, PREFETCH,
|
|
|
|
X86::VGATHERPF0QPSm, X86::VGATHERPF1QPSm),
|
2014-12-04 13:20:33 +08:00
|
|
|
|
2015-12-24 15:11:53 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_db_mem_128, TRUNCATE_TO_MEM_VI8,
|
2015-07-25 01:24:15 +08:00
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_db_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_db_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_dw_mem_128, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_dw_mem_256, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_dw_mem_512, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qb_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qb_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qb_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qd_mem_128, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qd_mem_256, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qd_mem_512, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qw_mem_128, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qw_mem_256, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qw_mem_512, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_wb_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_wb_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_wb_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNC, 0),
|
2016-12-21 18:43:36 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_db_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_db_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_db_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_dw_mem_128, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_dw_mem_256, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_dw_mem_512, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qb_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qb_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qb_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qd_mem_128, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qd_mem_256, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qd_mem_512, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qw_mem_128, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qw_mem_256, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qw_mem_512, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_wb_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_wb_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_wb_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_db_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_db_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_db_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_dw_mem_128, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_dw_mem_256, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_dw_mem_512, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qb_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qb_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qb_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qd_mem_128, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qd_mem_256, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qd_mem_512, TRUNCATE_TO_MEM_VI32,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qw_mem_128, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qw_mem_256, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qw_mem_512, TRUNCATE_TO_MEM_VI16,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_wb_mem_128, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_wb_mem_256, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_wb_mem_512, TRUNCATE_TO_MEM_VI8,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_dpd_512, SCATTER, X86::VSCATTERDPDZmr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_dpi_512, SCATTER, X86::VPSCATTERDDZmr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_dpq_512, SCATTER, X86::VPSCATTERDQZmr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_dps_512, SCATTER, X86::VSCATTERDPSZmr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_qpd_512, SCATTER, X86::VSCATTERQPDZmr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_qpi_512, SCATTER, X86::VPSCATTERQDZmr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_qpq_512, SCATTER, X86::VPSCATTERQQZmr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatter_qps_512, SCATTER, X86::VSCATTERQPSZmr, 0),
|
2015-06-29 20:14:24 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv2_df, SCATTER, X86::VSCATTERQPDZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv2_di, SCATTER, X86::VPSCATTERQQZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv4_df, SCATTER, X86::VSCATTERQPDZ256mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv4_di, SCATTER, X86::VPSCATTERQQZ256mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv4_sf, SCATTER, X86::VSCATTERQPSZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv4_si, SCATTER, X86::VPSCATTERQDZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv8_sf, SCATTER, X86::VSCATTERQPSZ256mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterdiv8_si, SCATTER, X86::VPSCATTERQDZ256mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterpf_dpd_512, PREFETCH, X86::VSCATTERPF0DPDm,
|
|
|
|
X86::VSCATTERPF1DPDm),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterpf_dps_512, PREFETCH, X86::VSCATTERPF0DPSm,
|
|
|
|
X86::VSCATTERPF1DPSm),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterpf_qpd_512, PREFETCH, X86::VSCATTERPF0QPDm,
|
|
|
|
X86::VSCATTERPF1QPDm),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scatterpf_qps_512, PREFETCH, X86::VSCATTERPF0QPSm,
|
|
|
|
X86::VSCATTERPF1QPSm),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv2_df, SCATTER, X86::VSCATTERDPDZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv2_di, SCATTER, X86::VPSCATTERDQZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv4_df, SCATTER, X86::VSCATTERDPDZ256mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv4_di, SCATTER, X86::VPSCATTERDQZ256mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv4_sf, SCATTER, X86::VSCATTERDPSZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv4_si, SCATTER, X86::VPSCATTERDDZ128mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv8_sf, SCATTER, X86::VSCATTERDPSZ256mr, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_scattersiv8_si, SCATTER, X86::VPSCATTERDDZ256mr, 0),
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(rdpmc, RDPMC, X86ISD::RDPMC_DAG, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdrand_16, RDRAND, X86ISD::RDRAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdrand_32, RDRAND, X86ISD::RDRAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdrand_64, RDRAND, X86ISD::RDRAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdseed_16, RDSEED, X86ISD::RDSEED, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdseed_32, RDSEED, X86ISD::RDSEED, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdseed_64, RDSEED, X86ISD::RDSEED, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdtsc, RDTSC, X86ISD::RDTSC_DAG, 0),
|
|
|
|
X86_INTRINSIC_DATA(rdtscp, RDTSC, X86ISD::RDTSCP_DAG, 0),
|
2016-08-16 14:41:00 +08:00
|
|
|
X86_INTRINSIC_DATA(xgetbv, XGETBV, X86::XGETBV, 0),
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(xtest, XTEST, X86ISD::XTEST, 0),
|
|
|
|
};
|
2014-08-24 17:19:56 +08:00
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
/*
|
|
|
|
* Find Intrinsic data by intrinsic ID
|
|
|
|
*/
|
2018-06-26 04:27:46 +08:00
|
|
|
static const IntrinsicData* getIntrinsicWithChain(unsigned IntNo) {
|
2014-09-04 14:34:34 +08:00
|
|
|
const IntrinsicData *Data = std::lower_bound(std::begin(IntrinsicsWithChain),
|
|
|
|
std::end(IntrinsicsWithChain),
|
2018-06-26 04:27:46 +08:00
|
|
|
IntNo);
|
|
|
|
if (Data != std::end(IntrinsicsWithChain) && Data->Id == IntNo)
|
2014-09-04 14:34:34 +08:00
|
|
|
return Data;
|
|
|
|
return nullptr;
|
2014-08-24 17:19:56 +08:00
|
|
|
}
|
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
/*
|
|
|
|
* IntrinsicsWithoutChain - the table should be sorted by Intrinsic ID - in
|
|
|
|
* the alphabetical order.
|
|
|
|
*/
|
|
|
|
static const IntrinsicData IntrinsicsWithoutChain[] = {
|
2018-09-08 00:58:39 +08:00
|
|
|
X86_INTRINSIC_DATA(addcarry_u32, ADX, X86ISD::ADC, 0),
|
|
|
|
X86_INTRINSIC_DATA(addcarry_u64, ADX, X86ISD::ADC, 0),
|
|
|
|
X86_INTRINSIC_DATA(addcarryx_u32, ADX, X86ISD::ADC, 0),
|
|
|
|
X86_INTRINSIC_DATA(addcarryx_u64, ADX, X86ISD::ADC, 0),
|
2017-07-30 14:02:59 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_addsub_pd_256, INTR_TYPE_2OP, X86ISD::ADDSUB, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_addsub_ps_256, INTR_TYPE_2OP, X86ISD::ADDSUB, 0),
|
2017-03-13 07:05:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_cmp_pd_256, INTR_TYPE_3OP, X86ISD::CMPP, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_cmp_ps_256, INTR_TYPE_3OP, X86ISD::CMPP, 0),
|
2016-11-06 12:12:46 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_cvt_pd2_ps_256,CVTPD2PS, ISD::FP_ROUND, 0),
|
2016-11-10 15:47:17 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_cvt_pd2dq_256, INTR_TYPE_1OP, X86ISD::CVTP2SI, 0),
|
2018-02-25 02:58:07 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_cvt_ps2dq_256, INTR_TYPE_1OP, X86ISD::CVTP2SI, 0),
|
2018-06-14 11:16:58 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_cvtt_pd2dq_256,INTR_TYPE_1OP, X86ISD::CVTTP2SI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_cvtt_ps2dq_256,INTR_TYPE_1OP, X86ISD::CVTTP2SI, 0),
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_hadd_pd_256, INTR_TYPE_2OP, X86ISD::FHADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_hadd_ps_256, INTR_TYPE_2OP, X86ISD::FHADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_hsub_pd_256, INTR_TYPE_2OP, X86ISD::FHSUB, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_hsub_ps_256, INTR_TYPE_2OP, X86ISD::FHSUB, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_max_pd_256, INTR_TYPE_2OP, X86ISD::FMAX, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_max_ps_256, INTR_TYPE_2OP, X86ISD::FMAX, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_min_pd_256, INTR_TYPE_2OP, X86ISD::FMIN, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_min_ps_256, INTR_TYPE_2OP, X86ISD::FMIN, 0),
|
2016-04-04 02:22:03 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_movmsk_pd_256, INTR_TYPE_1OP, X86ISD::MOVMSK, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_movmsk_ps_256, INTR_TYPE_1OP, X86ISD::MOVMSK, 0),
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_rcp_ps_256, INTR_TYPE_1OP, X86ISD::FRCP, 0),
|
2017-11-13 10:03:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_round_pd_256, ROUNDP, X86ISD::VRNDSCALE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_round_ps_256, ROUNDP, X86ISD::VRNDSCALE, 0),
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_rsqrt_ps_256, INTR_TYPE_1OP, X86ISD::FRSQRT, 0),
|
2016-03-04 02:13:53 +08:00
|
|
|
X86_INTRINSIC_DATA(avx_vpermilvar_pd, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_vpermilvar_pd_256, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_vpermilvar_ps, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx_vpermilvar_ps_256, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0),
|
2015-04-21 18:27:40 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_packssdw, INTR_TYPE_2OP, X86ISD::PACKSS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_packsswb, INTR_TYPE_2OP, X86ISD::PACKSS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_packusdw, INTR_TYPE_2OP, X86ISD::PACKUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_packuswb, INTR_TYPE_2OP, X86ISD::PACKUS, 0),
|
2018-04-27 05:46:01 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_padds_b, INTR_TYPE_2OP, X86ISD::ADDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_padds_w, INTR_TYPE_2OP, X86ISD::ADDS, 0),
|
2018-05-21 07:34:04 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_permd, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_permps, VPERM_2OP, X86ISD::VPERMV, 0),
|
2015-04-21 18:27:40 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_phadd_d, INTR_TYPE_2OP, X86ISD::HADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_phadd_w, INTR_TYPE_2OP, X86ISD::HADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_phsub_d, INTR_TYPE_2OP, X86ISD::HSUB, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_phsub_w, INTR_TYPE_2OP, X86ISD::HSUB, 0),
|
2016-10-30 14:56:16 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_pmadd_ub_sw, INTR_TYPE_2OP, X86ISD::VPMADDUBSW, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_pmadd_wd, INTR_TYPE_2OP, X86ISD::VPMADDWD, 0),
|
2016-04-04 02:22:03 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_pmovmskb, INTR_TYPE_1OP, X86ISD::MOVMSK, 0),
|
2016-10-30 02:41:45 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_pmul_hr_sw, INTR_TYPE_2OP, X86ISD::MULHRS, 0),
|
2015-04-21 18:27:40 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_pmulh_w, INTR_TYPE_2OP, ISD::MULHS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_pmulhu_w, INTR_TYPE_2OP, ISD::MULHU, 0),
|
2015-11-25 03:51:26 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_psad_bw, INTR_TYPE_2OP, X86ISD::PSADBW, 0),
|
2015-04-21 18:27:40 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_pshuf_b, INTR_TYPE_2OP, X86ISD::PSHUFB, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psll_d, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psll_q, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psll_w, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_pslli_d, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_pslli_q, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_pslli_w, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psllv_d, INTR_TYPE_2OP, ISD::SHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psllv_d_256, INTR_TYPE_2OP, ISD::SHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psllv_q, INTR_TYPE_2OP, ISD::SHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psllv_q_256, INTR_TYPE_2OP, ISD::SHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psra_d, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psra_w, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrai_d, VSHIFT, X86ISD::VSRAI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrai_w, VSHIFT, X86ISD::VSRAI, 0),
|
2016-06-20 15:05:43 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_psrav_d, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrav_d_256, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
2015-04-21 18:27:40 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_psrl_d, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrl_q, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrl_w, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrli_d, VSHIFT, X86ISD::VSRLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrli_q, VSHIFT, X86ISD::VSRLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrli_w, VSHIFT, X86ISD::VSRLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrlv_d, INTR_TYPE_2OP, ISD::SRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrlv_d_256, INTR_TYPE_2OP, ISD::SRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrlv_q, INTR_TYPE_2OP, ISD::SRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psrlv_q_256, INTR_TYPE_2OP, ISD::SRL, 0),
|
2018-04-27 05:46:01 +08:00
|
|
|
X86_INTRINSIC_DATA(avx2_psubs_b, INTR_TYPE_2OP, X86ISD::SUBS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx2_psubs_w, INTR_TYPE_2OP, X86ISD::SUBS, 0),
|
2018-06-10 14:01:36 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_add_pd_512, INTR_TYPE_2OP, ISD::FADD, X86ISD::FADD_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_add_ps_512, INTR_TYPE_2OP, ISD::FADD, X86ISD::FADD_RND),
|
2018-06-27 23:57:53 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_cmp_pd_128, CMP_MASK_CC, X86ISD::CMPM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cmp_pd_256, CMP_MASK_CC, X86ISD::CMPM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cmp_pd_512, CMP_MASK_CC, X86ISD::CMPM, X86ISD::CMPM_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cmp_ps_128, CMP_MASK_CC, X86ISD::CMPM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cmp_ps_256, CMP_MASK_CC, X86ISD::CMPM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cmp_ps_512, CMP_MASK_CC, X86ISD::CMPM, X86ISD::CMPM_RND),
|
2016-09-23 14:24:39 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_cvtsi2sd64, INTR_TYPE_3OP, X86ISD::SCALAR_SINT_TO_FP_RND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvtsi2ss32, INTR_TYPE_3OP, X86ISD::SCALAR_SINT_TO_FP_RND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvtsi2ss64, INTR_TYPE_3OP, X86ISD::SCALAR_SINT_TO_FP_RND, 0),
|
2018-08-15 09:23:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_cvttsd2si, INTR_TYPE_1OP, X86ISD::CVTTS2SI, X86ISD::CVTTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvttsd2si64, INTR_TYPE_1OP, X86ISD::CVTTS2SI, X86ISD::CVTTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvttsd2usi, INTR_TYPE_1OP, X86ISD::CVTTS2UI, X86ISD::CVTTS2UI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvttsd2usi64, INTR_TYPE_1OP, X86ISD::CVTTS2UI, X86ISD::CVTTS2UI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvttss2si, INTR_TYPE_1OP, X86ISD::CVTTS2SI, X86ISD::CVTTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvttss2si64, INTR_TYPE_1OP, X86ISD::CVTTS2SI, X86ISD::CVTTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvttss2usi, INTR_TYPE_1OP, X86ISD::CVTTS2UI, X86ISD::CVTTS2UI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvttss2usi64, INTR_TYPE_1OP, X86ISD::CVTTS2UI, X86ISD::CVTTS2UI_RND),
|
2016-09-23 14:24:39 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_cvtusi2ss, INTR_TYPE_3OP, X86ISD::SCALAR_UINT_TO_FP_RND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvtusi642sd, INTR_TYPE_3OP, X86ISD::SCALAR_UINT_TO_FP_RND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_cvtusi642ss, INTR_TYPE_3OP, X86ISD::SCALAR_UINT_TO_FP_RND, 0),
|
2018-06-11 14:18:22 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_dbpsadbw_128, INTR_TYPE_3OP_IMM8, X86ISD::DBPSADBW, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_dbpsadbw_256, INTR_TYPE_3OP_IMM8, X86ISD::DBPSADBW, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_dbpsadbw_512, INTR_TYPE_3OP_IMM8, X86ISD::DBPSADBW, 0),
|
2018-06-10 14:01:36 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_div_pd_512, INTR_TYPE_2OP, ISD::FDIV, X86ISD::FDIV_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_div_ps_512, INTR_TYPE_2OP, ISD::FDIV, X86ISD::FDIV_RND),
|
2015-04-21 18:27:40 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_exp2_pd, INTR_TYPE_1OP_MASK_RM, X86ISD::EXP2, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_exp2_ps, INTR_TYPE_1OP_MASK_RM, X86ISD::EXP2, 0),
|
2018-06-27 23:57:53 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_fpclass_pd_128, FPCLASS, X86ISD::VFPCLASS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_fpclass_pd_256, FPCLASS, X86ISD::VFPCLASS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_fpclass_pd_512, FPCLASS, X86ISD::VFPCLASS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_fpclass_ps_128, FPCLASS, X86ISD::VFPCLASS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_fpclass_ps_256, FPCLASS, X86ISD::VFPCLASS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_fpclass_ps_512, FPCLASS, X86ISD::VFPCLASS, 0),
|
2018-08-29 03:22:55 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_kadd_b, INTR_TYPE_2OP, X86ISD::KADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_kadd_d, INTR_TYPE_2OP, X86ISD::KADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_kadd_q, INTR_TYPE_2OP, X86ISD::KADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_kadd_w, INTR_TYPE_2OP, X86ISD::KADD, 0),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_add_sd_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FADDS_RND, 0),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_add_ss_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FADDS_RND, 0),
|
2016-09-21 14:37:54 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cmp_sd, CMP_MASK_SCALAR_CC,
|
|
|
|
X86ISD::FSETCCM, X86ISD::FSETCCM_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cmp_ss, CMP_MASK_SCALAR_CC,
|
|
|
|
X86ISD::FSETCCM, X86ISD::FSETCCM_RND),
|
2017-11-21 17:48:44 +08:00
|
|
|
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_b_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::COMPRESS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_b_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::COMPRESS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_b_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_d_128, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_d_256, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_d_512, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_pd_128, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_pd_256, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_pd_512, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_ps_128, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_ps_256, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_ps_512, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_q_128, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_q_256, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_q_512, COMPRESS_EXPAND_IN_REG,
|
2014-12-11 23:02:24 +08:00
|
|
|
X86ISD::COMPRESS, 0),
|
2017-11-21 17:48:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_w_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::COMPRESS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_w_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::COMPRESS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_compress_w_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::COMPRESS, 0),
|
2015-09-03 17:05:31 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_conflict_d_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::CONFLICT, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_conflict_d_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::CONFLICT, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_conflict_d_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::CONFLICT, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_conflict_q_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::CONFLICT, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_conflict_q_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::CONFLICT, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_conflict_q_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::CONFLICT, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtdq2ps_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
ISD::SINT_TO_FP, X86ISD::SINT_TO_FP_RND), //er
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2dq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2dq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, X86ISD::CVTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2ps, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VFPROUND, 0),
|
2016-11-06 12:12:46 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2ps_512, CVTPD2PS_MASK,
|
2016-09-23 14:24:43 +08:00
|
|
|
ISD::FP_ROUND, X86ISD::VFPROUND_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2qq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2qq_256, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2qq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, X86ISD::CVTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2udq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2udq_256, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2udq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, X86ISD::CVTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2uqq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2uqq_256, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtpd2uqq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, X86ISD::CVTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2dq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2dq_256, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2dq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, X86ISD::CVTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2pd_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:43 +08:00
|
|
|
ISD::FP_EXTEND, X86ISD::VFPEXT_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2qq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2qq_256, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2qq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2SI, X86ISD::CVTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2udq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2udq_256, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2udq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, X86ISD::CVTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2uqq_128, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2uqq_256, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtps2uqq_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
X86ISD::CVTP2UI, X86ISD::CVTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtqq2pd_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
ISD::SINT_TO_FP, X86ISD::SINT_TO_FP_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtqq2ps_128, INTR_TYPE_1OP_MASK,
|
2016-11-24 20:13:46 +08:00
|
|
|
X86ISD::CVTSI2P, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtqq2ps_256, INTR_TYPE_1OP_MASK,
|
|
|
|
ISD::SINT_TO_FP, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtqq2ps_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
ISD::SINT_TO_FP, X86ISD::SINT_TO_FP_RND),
|
2015-09-20 22:31:19 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtsd2ss_round, INTR_TYPE_SCALAR_MASK_RM,
|
2016-09-23 14:24:43 +08:00
|
|
|
X86ISD::VFPROUNDS_RND, 0),
|
2015-10-29 10:33:05 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtss2sd_round, INTR_TYPE_SCALAR_MASK_RM,
|
2016-09-23 14:24:43 +08:00
|
|
|
X86ISD::VFPEXTS_RND, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2dq_128, INTR_TYPE_1OP_MASK,
|
2016-11-24 20:13:46 +08:00
|
|
|
X86ISD::CVTTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2dq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2SI, X86ISD::CVTTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2qq_128, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2qq_256, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2qq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2SI, X86ISD::CVTTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2udq_128, INTR_TYPE_1OP_MASK,
|
2016-11-24 20:13:46 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2udq_256, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2udq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, X86ISD::CVTTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2uqq_128, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2uqq_256, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttpd2uqq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, X86ISD::CVTTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2dq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2SI, X86ISD::CVTTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2qq_128, INTR_TYPE_1OP_MASK,
|
2016-12-10 14:02:48 +08:00
|
|
|
X86ISD::CVTTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2qq_256, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2SI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2qq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2SI, X86ISD::CVTTP2SI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2udq_128, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2udq_256, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2udq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, X86ISD::CVTTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2uqq_128, INTR_TYPE_1OP_MASK,
|
2016-12-10 14:02:48 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2uqq_256, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvttps2uqq_512, INTR_TYPE_1OP_MASK,
|
2018-06-14 11:16:58 +08:00
|
|
|
X86ISD::CVTTP2UI, X86ISD::CVTTP2UI_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtudq2ps_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
ISD::UINT_TO_FP, X86ISD::UINT_TO_FP_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtuqq2pd_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
ISD::UINT_TO_FP, X86ISD::UINT_TO_FP_RND),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtuqq2ps_128, INTR_TYPE_1OP_MASK,
|
2016-11-24 20:13:46 +08:00
|
|
|
X86ISD::CVTUI2P, 0),
|
2015-07-22 16:56:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtuqq2ps_256, INTR_TYPE_1OP_MASK,
|
|
|
|
ISD::UINT_TO_FP, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_cvtuqq2ps_512, INTR_TYPE_1OP_MASK,
|
2016-09-23 14:24:39 +08:00
|
|
|
ISD::UINT_TO_FP, X86ISD::UINT_TO_FP_RND),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_div_sd_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FDIVS_RND, 0),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_div_ss_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FDIVS_RND, 0),
|
2017-11-21 17:48:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_b_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_b_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_b_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
2014-12-15 18:03:52 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_d_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_d_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_d_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_pd_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_pd_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_pd_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_ps_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_ps_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_ps_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_q_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_q_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_q_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
2017-11-21 17:48:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_w_128, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_w_256, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_expand_w_512, COMPRESS_EXPAND_IN_REG,
|
|
|
|
X86ISD::EXPAND, 0),
|
2016-01-19 22:21:39 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_pd_128, FIXUPIMM, X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_pd_256, FIXUPIMM, X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_pd_512, FIXUPIMM, X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_ps_128, FIXUPIMM, X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_ps_256, FIXUPIMM, X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_ps_512, FIXUPIMM, X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_sd, FIXUPIMMS, X86ISD::VFIXUPIMMS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fixupimm_ss, FIXUPIMMS, X86ISD::VFIXUPIMMS, 0),
|
2015-11-27 03:41:34 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fpclass_sd, FPCLASSS, X86ISD::VFPCLASSS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_fpclass_ss, FPCLASSS, X86ISD::VFPCLASSS, 0),
|
2015-09-23 16:48:33 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_pd_128, INTR_TYPE_1OP_MASK_RM,
|
2015-06-03 21:41:48 +08:00
|
|
|
X86ISD::FGETEXP_RND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_pd_256, INTR_TYPE_1OP_MASK_RM,
|
|
|
|
X86ISD::FGETEXP_RND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_pd_512, INTR_TYPE_1OP_MASK_RM,
|
|
|
|
X86ISD::FGETEXP_RND, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_ps_128, INTR_TYPE_1OP_MASK_RM,
|
|
|
|
X86ISD::FGETEXP_RND, 0),
|
2015-06-29 12:50:09 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_ps_256, INTR_TYPE_1OP_MASK_RM,
|
2015-06-03 21:41:48 +08:00
|
|
|
X86ISD::FGETEXP_RND, 0),
|
2015-06-29 12:50:09 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_ps_512, INTR_TYPE_1OP_MASK_RM,
|
2015-06-03 21:41:48 +08:00
|
|
|
X86ISD::FGETEXP_RND, 0),
|
2015-07-28 14:53:28 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_sd, INTR_TYPE_SCALAR_MASK_RM,
|
2016-09-23 14:24:35 +08:00
|
|
|
X86ISD::FGETEXPS_RND, 0),
|
2015-07-28 14:53:28 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getexp_ss, INTR_TYPE_SCALAR_MASK_RM,
|
2016-09-23 14:24:35 +08:00
|
|
|
X86ISD::FGETEXPS_RND, 0),
|
2017-11-13 10:02:58 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_pd_128, INTR_TYPE_2OP_MASK,
|
2015-09-02 19:18:55 +08:00
|
|
|
X86ISD::VGETMANT, 0),
|
2017-11-13 10:02:58 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_pd_256, INTR_TYPE_2OP_MASK,
|
2015-09-02 19:18:55 +08:00
|
|
|
X86ISD::VGETMANT, 0),
|
2017-11-13 10:02:58 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_pd_512, INTR_TYPE_2OP_MASK,
|
|
|
|
X86ISD::VGETMANT, X86ISD::VGETMANT_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_ps_128, INTR_TYPE_2OP_MASK,
|
2015-09-02 19:18:55 +08:00
|
|
|
X86ISD::VGETMANT, 0),
|
2017-11-13 10:02:58 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_ps_256, INTR_TYPE_2OP_MASK,
|
2015-09-02 19:18:55 +08:00
|
|
|
X86ISD::VGETMANT, 0),
|
2017-11-13 10:02:58 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_ps_512, INTR_TYPE_2OP_MASK,
|
|
|
|
X86ISD::VGETMANT, X86ISD::VGETMANT_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_sd, INTR_TYPE_3OP_SCALAR_MASK,
|
|
|
|
X86ISD::VGETMANTS, X86ISD::VGETMANTS_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_getmant_ss, INTR_TYPE_3OP_SCALAR_MASK,
|
|
|
|
X86ISD::VGETMANTS, X86ISD::VGETMANTS_RND),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_max_sd_round, INTR_TYPE_SCALAR_MASK,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FMAXS, X86ISD::FMAXS_RND),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_max_ss_round, INTR_TYPE_SCALAR_MASK,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FMAXS, X86ISD::FMAXS_RND),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_min_sd_round, INTR_TYPE_SCALAR_MASK,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FMINS, X86ISD::FMINS_RND),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_min_ss_round, INTR_TYPE_SCALAR_MASK,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FMINS, X86ISD::FMINS_RND),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_mul_sd_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FMULS_RND, 0),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_mul_ss_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FMULS_RND, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_db_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_db_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_db_512, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_dw_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_dw_256, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_dw_512, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qb_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qb_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qb_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qd_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qd_256, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qd_512, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qw_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qw_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_qw_512, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_wb_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNC, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_wb_256, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmov_wb_512, INTR_TYPE_1OP_MASK,
|
2018-01-14 16:11:36 +08:00
|
|
|
ISD::TRUNCATE, 0),
|
2015-07-25 01:24:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_db_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_db_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_db_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_dw_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_dw_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_dw_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qb_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qb_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qb_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qd_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qd_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qd_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qw_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qw_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_qw_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_wb_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_wb_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovs_wb_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_db_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_db_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_db_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_dw_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_dw_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_dw_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qb_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qb_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qb_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qd_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qd_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qd_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qw_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qw_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_qw_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_wb_128, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_wb_256, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmovus_wb_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::VTRUNCUS, 0),
|
2016-02-01 23:48:21 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmultishift_qb_128, INTR_TYPE_2OP_MASK,
|
|
|
|
X86ISD::MULTISHIFT, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmultishift_qb_256, INTR_TYPE_2OP_MASK,
|
|
|
|
X86ISD::MULTISHIFT, 0),
|
2016-02-27 19:49:16 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_pmultishift_qb_512, INTR_TYPE_2OP_MASK,
|
2016-02-01 23:48:21 +08:00
|
|
|
X86ISD::MULTISHIFT, 0),
|
2017-11-13 10:02:58 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_pd_128, INTR_TYPE_3OP_MASK, X86ISD::VRANGE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_pd_256, INTR_TYPE_3OP_MASK, X86ISD::VRANGE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_pd_512, INTR_TYPE_3OP_MASK, X86ISD::VRANGE, X86ISD::VRANGE_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_ps_128, INTR_TYPE_3OP_MASK, X86ISD::VRANGE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_ps_256, INTR_TYPE_3OP_MASK, X86ISD::VRANGE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_ps_512, INTR_TYPE_3OP_MASK, X86ISD::VRANGE, X86ISD::VRANGE_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_sd, INTR_TYPE_SCALAR_MASK, X86ISD::VRANGES, X86ISD::VRANGES_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_range_ss, INTR_TYPE_SCALAR_MASK, X86ISD::VRANGES, X86ISD::VRANGES_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_pd_128, INTR_TYPE_2OP_MASK, X86ISD::VREDUCE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_pd_256, INTR_TYPE_2OP_MASK, X86ISD::VREDUCE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_pd_512, INTR_TYPE_2OP_MASK, X86ISD::VREDUCE, X86ISD::VREDUCE_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_ps_128, INTR_TYPE_2OP_MASK, X86ISD::VREDUCE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_ps_256, INTR_TYPE_2OP_MASK, X86ISD::VREDUCE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_ps_512, INTR_TYPE_2OP_MASK, X86ISD::VREDUCE, X86ISD::VREDUCE_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_sd, INTR_TYPE_SCALAR_MASK, X86ISD::VREDUCES, X86ISD::VREDUCES_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_reduce_ss, INTR_TYPE_SCALAR_MASK, X86ISD::VREDUCES, X86ISD::VREDUCES_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_pd_128, INTR_TYPE_2OP_MASK, X86ISD::VRNDSCALE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_pd_256, INTR_TYPE_2OP_MASK, X86ISD::VRNDSCALE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_pd_512, INTR_TYPE_2OP_MASK, X86ISD::VRNDSCALE, X86ISD::VRNDSCALE_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_ps_128, INTR_TYPE_2OP_MASK, X86ISD::VRNDSCALE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_ps_256, INTR_TYPE_2OP_MASK, X86ISD::VRNDSCALE, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_ps_512, INTR_TYPE_2OP_MASK, X86ISD::VRNDSCALE, X86ISD::VRNDSCALE_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_sd, INTR_TYPE_SCALAR_MASK,
|
|
|
|
X86ISD::VRNDSCALES, X86ISD::VRNDSCALES_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_rndscale_ss, INTR_TYPE_SCALAR_MASK,
|
|
|
|
X86ISD::VRNDSCALES, X86ISD::VRNDSCALES_RND),
|
2015-06-29 12:50:09 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_pd_128, INTR_TYPE_2OP_MASK_RM,
|
|
|
|
X86ISD::SCALEF, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_pd_256, INTR_TYPE_2OP_MASK_RM,
|
|
|
|
X86ISD::SCALEF, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_pd_512, INTR_TYPE_2OP_MASK_RM,
|
|
|
|
X86ISD::SCALEF, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_ps_128, INTR_TYPE_2OP_MASK_RM,
|
|
|
|
X86ISD::SCALEF, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_ps_256, INTR_TYPE_2OP_MASK_RM,
|
|
|
|
X86ISD::SCALEF, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_ps_512, INTR_TYPE_2OP_MASK_RM,
|
2015-06-28 22:30:39 +08:00
|
|
|
X86ISD::SCALEF, 0),
|
2015-07-22 20:00:43 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_sd, INTR_TYPE_SCALAR_MASK_RM,
|
2016-05-21 19:09:53 +08:00
|
|
|
X86ISD::SCALEFS, 0),
|
2015-07-22 20:00:43 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_scalef_ss, INTR_TYPE_SCALAR_MASK_RM,
|
2016-05-21 19:09:53 +08:00
|
|
|
X86ISD::SCALEFS, 0),
|
2015-09-20 17:13:41 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_sqrt_sd, INTR_TYPE_SCALAR_MASK_RM,
|
2016-09-23 14:24:35 +08:00
|
|
|
X86ISD::FSQRTS_RND, 0),
|
2015-09-20 17:13:41 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_sqrt_ss, INTR_TYPE_SCALAR_MASK_RM,
|
2016-09-23 14:24:35 +08:00
|
|
|
X86ISD::FSQRTS_RND, 0),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_sub_sd_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FSUBS_RND, 0),
|
2016-09-25 09:03:10 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_sub_ss_round, INTR_TYPE_SCALAR_MASK_RM,
|
2017-02-24 15:21:10 +08:00
|
|
|
X86ISD::FSUBS_RND, 0),
|
2017-11-07 15:13:03 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vcvtph2ps_128, INTR_TYPE_1OP_MASK,
|
2016-09-21 10:05:22 +08:00
|
|
|
X86ISD::CVTPH2PS, 0),
|
2017-11-07 15:13:03 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vcvtph2ps_256, INTR_TYPE_1OP_MASK,
|
2016-09-21 10:05:22 +08:00
|
|
|
X86ISD::CVTPH2PS, 0),
|
2017-11-07 15:13:03 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vcvtph2ps_512, INTR_TYPE_1OP_MASK,
|
|
|
|
X86ISD::CVTPH2PS, X86ISD::CVTPH2PS_RND),
|
2016-09-21 11:58:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vcvtps2ph_128, INTR_TYPE_2OP_MASK,
|
2016-09-21 10:05:22 +08:00
|
|
|
X86ISD::CVTPS2PH, 0),
|
2016-09-21 11:58:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vcvtps2ph_256, INTR_TYPE_2OP_MASK,
|
2016-09-21 10:05:22 +08:00
|
|
|
X86ISD::CVTPS2PH, 0),
|
2016-09-21 11:58:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vcvtps2ph_512, INTR_TYPE_2OP_MASK,
|
2016-09-21 10:05:22 +08:00
|
|
|
X86ISD::CVTPS2PH, 0),
|
2015-06-29 17:10:00 +08:00
|
|
|
|
2017-11-21 17:48:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_d_128, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_d_256, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_d_512, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_q_128, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_q_256, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_q_512, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_w_128, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_w_256, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshldv_w_512, FMA_OP_MASK, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_d_128, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_d_256, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_d_512, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_q_128, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_q_256, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_q_512, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_w_128, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_w_256, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshrdv_w_512, FMA_OP_MASK, X86ISD::VSHRDV, 0),
|
|
|
|
|
2017-11-23 19:15:50 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshufbitqmb_128, CMP_MASK,
|
|
|
|
X86ISD::VPSHUFBITQMB, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshufbitqmb_256, CMP_MASK,
|
|
|
|
X86ISD::VPSHUFBITQMB, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mask_vpshufbitqmb_512, CMP_MASK,
|
|
|
|
X86ISD::VPSHUFBITQMB, 0),
|
|
|
|
|
2016-01-19 22:21:39 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_pd_128, FIXUPIMM_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_pd_256, FIXUPIMM_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_pd_512, FIXUPIMM_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_ps_128, FIXUPIMM_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_ps_256, FIXUPIMM_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_ps_512, FIXUPIMM_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMM, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_sd, FIXUPIMMS_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMMS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_fixupimm_ss, FIXUPIMMS_MASKZ,
|
|
|
|
X86ISD::VFIXUPIMMS, 0),
|
2015-06-29 17:10:00 +08:00
|
|
|
|
2017-11-21 17:48:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_d_128, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_d_256, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_d_512, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_q_128, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_q_256, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_q_512, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_w_128, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_w_256, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshldv_w_512, FMA_OP_MASKZ, X86ISD::VSHLDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_d_128, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_d_256, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_d_512, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_q_128, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_q_256, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_q_512, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_w_128, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_w_256, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_maskz_vpshrdv_w_512, FMA_OP_MASKZ, X86ISD::VSHRDV, 0),
|
|
|
|
|
2018-06-21 13:00:56 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_max_pd_512, INTR_TYPE_2OP, X86ISD::FMAX, X86ISD::FMAX_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_max_ps_512, INTR_TYPE_2OP, X86ISD::FMAX, X86ISD::FMAX_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_min_pd_512, INTR_TYPE_2OP, X86ISD::FMIN, X86ISD::FMIN_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_min_ps_512, INTR_TYPE_2OP, X86ISD::FMIN, X86ISD::FMIN_RND),
|
2018-06-10 14:01:36 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_mul_pd_512, INTR_TYPE_2OP, ISD::FMUL, X86ISD::FMUL_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_mul_ps_512, INTR_TYPE_2OP, ISD::FMUL, X86ISD::FMUL_RND),
|
2017-02-16 14:31:54 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_packssdw_512, INTR_TYPE_2OP, X86ISD::PACKSS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_packsswb_512, INTR_TYPE_2OP, X86ISD::PACKSS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_packusdw_512, INTR_TYPE_2OP, X86ISD::PACKUS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_packuswb_512, INTR_TYPE_2OP, X86ISD::PACKUS, 0),
|
2018-08-16 14:20:24 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_padds_b_512, INTR_TYPE_2OP, X86ISD::ADDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_padds_w_512, INTR_TYPE_2OP, X86ISD::ADDS, 0),
|
2018-05-21 07:34:04 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_df_256, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_df_512, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_di_256, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_di_512, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_hi_128, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_hi_256, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_hi_512, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_qi_128, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_qi_256, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_qi_512, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_sf_512, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_permvar_si_512, VPERM_2OP, X86ISD::VPERMV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pmaddubs_w_512, INTR_TYPE_2OP, X86ISD::VPMADDUBSW, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pmaddw_d_512, INTR_TYPE_2OP, X86ISD::VPMADDWD, 0),
|
2018-02-20 15:28:14 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_pmul_hr_sw_512, INTR_TYPE_2OP, X86ISD::MULHRS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pmulh_w_512, INTR_TYPE_2OP, ISD::MULHS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pmulhu_w_512, INTR_TYPE_2OP, ISD::MULHU, 0),
|
2018-06-30 09:32:04 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_prol_d_128, INTR_TYPE_2OP_IMM8, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prol_d_256, INTR_TYPE_2OP_IMM8, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prol_d_512, INTR_TYPE_2OP_IMM8, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prol_q_128, INTR_TYPE_2OP_IMM8, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prol_q_256, INTR_TYPE_2OP_IMM8, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prol_q_512, INTR_TYPE_2OP_IMM8, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prolv_d_128, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prolv_d_256, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prolv_d_512, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prolv_q_128, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prolv_q_256, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prolv_q_512, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pror_d_128, INTR_TYPE_2OP_IMM8, X86ISD::VROTRI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pror_d_256, INTR_TYPE_2OP_IMM8, X86ISD::VROTRI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pror_d_512, INTR_TYPE_2OP_IMM8, X86ISD::VROTRI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pror_q_128, INTR_TYPE_2OP_IMM8, X86ISD::VROTRI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pror_q_256, INTR_TYPE_2OP_IMM8, X86ISD::VROTRI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pror_q_512, INTR_TYPE_2OP_IMM8, X86ISD::VROTRI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prorv_d_128, INTR_TYPE_2OP, ISD::ROTR, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prorv_d_256, INTR_TYPE_2OP, ISD::ROTR, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prorv_d_512, INTR_TYPE_2OP, ISD::ROTR, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prorv_q_128, INTR_TYPE_2OP, ISD::ROTR, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prorv_q_256, INTR_TYPE_2OP, ISD::ROTR, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_prorv_q_512, INTR_TYPE_2OP, ISD::ROTR, 0),
|
2015-09-02 22:21:54 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psad_bw_512, INTR_TYPE_2OP, X86ISD::PSADBW, 0),
|
2016-12-11 07:09:43 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_pshuf_b_512, INTR_TYPE_2OP, X86ISD::PSHUFB, 0),
|
2016-11-12 13:28:24 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psll_d_512, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psll_q_512, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psll_w_512, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pslli_d_512, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pslli_q_512, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pslli_w_512, VSHIFT, X86ISD::VSHLI, 0),
|
2016-11-13 15:26:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psllv_d_512, INTR_TYPE_2OP, ISD::SHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psllv_q_512, INTR_TYPE_2OP, ISD::SHL, 0),
|
2016-11-18 13:04:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psllv_w_128, INTR_TYPE_2OP, ISD::SHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psllv_w_256, INTR_TYPE_2OP, ISD::SHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psllv_w_512, INTR_TYPE_2OP, ISD::SHL, 0),
|
2016-11-12 13:28:24 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psra_d_512, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psra_q_128, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psra_q_256, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psra_q_512, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psra_w_512, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrai_d_512, VSHIFT, X86ISD::VSRAI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrai_q_128, VSHIFT, X86ISD::VSRAI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrai_q_256, VSHIFT, X86ISD::VSRAI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrai_q_512, VSHIFT, X86ISD::VSRAI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrai_w_512, VSHIFT, X86ISD::VSRAI, 0),
|
2016-11-13 15:26:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psrav_d_512, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrav_q_128, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrav_q_256, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrav_q_512, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
2016-11-18 13:04:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psrav_w_128, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrav_w_256, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrav_w_512, INTR_TYPE_2OP, X86ISD::VSRAV, 0),
|
2016-11-12 13:28:24 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psrl_d_512, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrl_q_512, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrl_w_512, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrli_d_512, VSHIFT, X86ISD::VSRLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrli_q_512, VSHIFT, X86ISD::VSRLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrli_w_512, VSHIFT, X86ISD::VSRLI, 0),
|
2016-11-13 15:26:15 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psrlv_d_512, INTR_TYPE_2OP, ISD::SRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrlv_q_512, INTR_TYPE_2OP, ISD::SRL, 0),
|
2016-11-18 13:04:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psrlv_w_128, INTR_TYPE_2OP, ISD::SRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrlv_w_256, INTR_TYPE_2OP, ISD::SRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psrlv_w_512, INTR_TYPE_2OP, ISD::SRL, 0),
|
2018-08-16 14:20:24 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_psubs_b_512, INTR_TYPE_2OP, X86ISD::SUBS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_psubs_w_512, INTR_TYPE_2OP, X86ISD::SUBS, 0),
|
2018-05-22 04:58:09 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_pternlog_d_128, INTR_TYPE_4OP, X86ISD::VPTERNLOG, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pternlog_d_256, INTR_TYPE_4OP, X86ISD::VPTERNLOG, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pternlog_d_512, INTR_TYPE_4OP, X86ISD::VPTERNLOG, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pternlog_q_128, INTR_TYPE_4OP, X86ISD::VPTERNLOG, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pternlog_q_256, INTR_TYPE_4OP, X86ISD::VPTERNLOG, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_pternlog_q_512, INTR_TYPE_4OP, X86ISD::VPTERNLOG, 0),
|
2017-11-05 02:26:41 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_pd_128, INTR_TYPE_1OP_MASK, X86ISD::RCP14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_pd_256, INTR_TYPE_1OP_MASK, X86ISD::RCP14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_pd_512, INTR_TYPE_1OP_MASK, X86ISD::RCP14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_ps_128, INTR_TYPE_1OP_MASK, X86ISD::RCP14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_ps_256, INTR_TYPE_1OP_MASK, X86ISD::RCP14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_ps_512, INTR_TYPE_1OP_MASK, X86ISD::RCP14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_sd, INTR_TYPE_SCALAR_MASK, X86ISD::RCP14S, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp14_ss, INTR_TYPE_SCALAR_MASK, X86ISD::RCP14S, 0),
|
2015-12-22 19:40:04 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_rcp28_pd, INTR_TYPE_1OP_MASK_RM, X86ISD::RCP28, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp28_ps, INTR_TYPE_1OP_MASK_RM, X86ISD::RCP28, 0),
|
2016-09-23 14:24:35 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_rcp28_sd, INTR_TYPE_SCALAR_MASK_RM, X86ISD::RCP28S, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rcp28_ss, INTR_TYPE_SCALAR_MASK_RM, X86ISD::RCP28S, 0),
|
2017-11-05 02:26:41 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_pd_128, INTR_TYPE_1OP_MASK, X86ISD::RSQRT14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_pd_256, INTR_TYPE_1OP_MASK, X86ISD::RSQRT14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_pd_512, INTR_TYPE_1OP_MASK, X86ISD::RSQRT14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_ps_128, INTR_TYPE_1OP_MASK, X86ISD::RSQRT14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_ps_256, INTR_TYPE_1OP_MASK, X86ISD::RSQRT14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_ps_512, INTR_TYPE_1OP_MASK, X86ISD::RSQRT14, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_sd, INTR_TYPE_SCALAR_MASK, X86ISD::RSQRT14S, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt14_ss, INTR_TYPE_SCALAR_MASK, X86ISD::RSQRT14S, 0),
|
2014-11-12 15:31:03 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt28_pd, INTR_TYPE_1OP_MASK_RM,X86ISD::RSQRT28, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt28_ps, INTR_TYPE_1OP_MASK_RM,X86ISD::RSQRT28, 0),
|
2016-09-23 14:24:35 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt28_sd, INTR_TYPE_SCALAR_MASK_RM,X86ISD::RSQRT28S, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_rsqrt28_ss, INTR_TYPE_SCALAR_MASK_RM,X86ISD::RSQRT28S, 0),
|
2018-06-29 13:43:26 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_sqrt_pd_512, INTR_TYPE_1OP, ISD::FSQRT, X86ISD::FSQRT_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_sqrt_ps_512, INTR_TYPE_1OP, ISD::FSQRT, X86ISD::FSQRT_RND),
|
2018-06-10 14:01:36 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_sub_pd_512, INTR_TYPE_2OP, ISD::FSUB, X86ISD::FSUB_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_sub_ps_512, INTR_TYPE_2OP, ISD::FSUB, X86ISD::FSUB_RND),
|
2015-12-02 16:17:51 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vcomi_sd, COMI_RM, X86ISD::COMI, X86ISD::UCOMI),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcomi_ss, COMI_RM, X86ISD::COMI, X86ISD::UCOMI),
|
2018-08-15 09:23:00 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtsd2si32, INTR_TYPE_1OP, X86ISD::CVTS2SI, X86ISD::CVTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtsd2si64, INTR_TYPE_1OP, X86ISD::CVTS2SI, X86ISD::CVTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtsd2usi32, INTR_TYPE_1OP, X86ISD::CVTS2UI, X86ISD::CVTS2UI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtsd2usi64, INTR_TYPE_1OP, X86ISD::CVTS2UI, X86ISD::CVTS2UI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtss2si32, INTR_TYPE_1OP, X86ISD::CVTS2SI, X86ISD::CVTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtss2si64, INTR_TYPE_1OP, X86ISD::CVTS2SI, X86ISD::CVTS2SI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtss2usi32, INTR_TYPE_1OP, X86ISD::CVTS2UI, X86ISD::CVTS2UI_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vcvtss2usi64, INTR_TYPE_1OP, X86ISD::CVTS2UI, X86ISD::CVTS2UI_RND),
|
2018-07-08 09:10:43 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vfmadd_f32, INTR_TYPE_3OP, ISD::FMA, X86ISD::FMADD_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vfmadd_f64, INTR_TYPE_3OP, ISD::FMA, X86ISD::FMADD_RND),
|
2018-07-07 09:04:22 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vfmadd_pd_512, INTR_TYPE_3OP, ISD::FMA, X86ISD::FMADD_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vfmadd_ps_512, INTR_TYPE_3OP, ISD::FMA, X86ISD::FMADD_RND),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vfmaddsub_pd_512, INTR_TYPE_3OP, X86ISD::FMADDSUB,
|
2018-05-30 23:25:16 +08:00
|
|
|
X86ISD::FMADDSUB_RND),
|
2018-07-07 09:04:22 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vfmaddsub_ps_512, INTR_TYPE_3OP, X86ISD::FMADDSUB,
|
2018-05-30 23:25:16 +08:00
|
|
|
X86ISD::FMADDSUB_RND),
|
2018-05-30 13:25:59 +08:00
|
|
|
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpbusd_128, INTR_TYPE_3OP, X86ISD::VPDPBUSD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpbusd_256, INTR_TYPE_3OP, X86ISD::VPDPBUSD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpbusd_512, INTR_TYPE_3OP, X86ISD::VPDPBUSD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpbusds_128, INTR_TYPE_3OP, X86ISD::VPDPBUSDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpbusds_256, INTR_TYPE_3OP, X86ISD::VPDPBUSDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpbusds_512, INTR_TYPE_3OP, X86ISD::VPDPBUSDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpwssd_128, INTR_TYPE_3OP, X86ISD::VPDPWSSD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpwssd_256, INTR_TYPE_3OP, X86ISD::VPDPWSSD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpwssd_512, INTR_TYPE_3OP, X86ISD::VPDPWSSD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpwssds_128, INTR_TYPE_3OP, X86ISD::VPDPWSSDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpwssds_256, INTR_TYPE_3OP, X86ISD::VPDPWSSDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpdpwssds_512, INTR_TYPE_3OP, X86ISD::VPDPWSSDS, 0),
|
|
|
|
|
2018-05-29 11:26:30 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_d_128, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_d_256, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_d_512, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_hi_128, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_hi_256, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_hi_512, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_pd_128, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_pd_256, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_pd_512, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_ps_128, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_ps_256, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_ps_512, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_q_128, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_q_256, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_q_512, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_qi_128, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_qi_256, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermi2var_qi_512, INTR_TYPE_3OP, X86ISD::VPERMV3, 0),
|
2016-12-11 09:26:44 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vpermilvar_pd_512, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpermilvar_ps_512, INTR_TYPE_2OP, X86ISD::VPERMILPV, 0),
|
2018-05-27 02:55:19 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vpmadd52h_uq_128 , IFMA_OP, X86ISD::VPMADD52H, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpmadd52h_uq_256 , IFMA_OP, X86ISD::VPMADD52H, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpmadd52h_uq_512 , IFMA_OP, X86ISD::VPMADD52H, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpmadd52l_uq_128 , IFMA_OP, X86ISD::VPMADD52L, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpmadd52l_uq_256 , IFMA_OP, X86ISD::VPMADD52L, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpmadd52l_uq_512 , IFMA_OP, X86ISD::VPMADD52L, 0),
|
2018-06-13 15:19:21 +08:00
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_d_128, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_d_256, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_d_512, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_q_128, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_q_256, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_q_512, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_w_128, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_w_256, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshld_w_512, INTR_TYPE_3OP_IMM8, X86ISD::VSHLD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_d_128, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_d_256, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_d_512, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_q_128, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_q_256, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_q_512, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_w_128, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_w_256, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
|
|
|
X86_INTRINSIC_DATA(avx512_vpshrd_w_512, INTR_TYPE_3OP_IMM8, X86ISD::VSHRD, 0),
|
2018-06-06 18:52:10 +08:00
|
|
|
X86_INTRINSIC_DATA(bmi_bextr_32, INTR_TYPE_2OP, X86ISD::BEXTR, 0),
|
|
|
|
X86_INTRINSIC_DATA(bmi_bextr_64, INTR_TYPE_2OP, X86ISD::BEXTR, 0),
|
[X86] X86DAGToDAGISel: handle BZHI selection too, not just BEXTR.
Summary:
As discussed in D52304 / IRC, we now have pattern matching for
'bit extract' in two places - tablegen and `X86DAGToDAGISel`.
There are 4 patterns.
And we will have a problem with `x & (-1 >> (32 - y))` pattern.
* If the mask is one-use, then it is always unfolded into `x << (32 - y) >> (32 - y)` first.
Thus, the existing test coverage is already broken.
* If it is not one-use, then it is not unfolded, and is matched as BZHI.
* If it is not one-use, we will not match it as BEXTR. And if it is one-use, it will have been unfolded already.
So we will either not handle that pattern for BEXTR, or not have test coverage for it.
This is bad.
As discussed with @craig.topper, let's unify this matching, and do everything in `X86DAGToDAGISel`.
Then we will not have code duplication, and will have proper test coverage.
This indeed does not affect any tests, and this is great.
It means that for these two patterns, the `X86DAGToDAGISel` is identical to the tablegen version.
Please review carefully, i'm not fully sure about that intrinsic change, and introduction of the new `X86ISD` opcode.
Reviewers: craig.topper, RKSimon, spatel
Reviewed By: craig.topper
Subscribers: llvm-commits, craig.topper
Differential Revision: https://reviews.llvm.org/D53164
llvm-svn: 344904
2018-10-22 22:12:44 +08:00
|
|
|
X86_INTRINSIC_DATA(bmi_bzhi_32, INTR_TYPE_2OP, X86ISD::BZHI, 0),
|
|
|
|
X86_INTRINSIC_DATA(bmi_bzhi_64, INTR_TYPE_2OP, X86ISD::BZHI, 0),
|
2017-03-13 07:05:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_cmp_ps, INTR_TYPE_3OP, X86ISD::CMPP, 0),
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_comieq_ss, COMI, X86ISD::COMI, ISD::SETEQ),
|
|
|
|
X86_INTRINSIC_DATA(sse_comige_ss, COMI, X86ISD::COMI, ISD::SETGE),
|
|
|
|
X86_INTRINSIC_DATA(sse_comigt_ss, COMI, X86ISD::COMI, ISD::SETGT),
|
|
|
|
X86_INTRINSIC_DATA(sse_comile_ss, COMI, X86ISD::COMI, ISD::SETLE),
|
|
|
|
X86_INTRINSIC_DATA(sse_comilt_ss, COMI, X86ISD::COMI, ISD::SETLT),
|
|
|
|
X86_INTRINSIC_DATA(sse_comineq_ss, COMI, X86ISD::COMI, ISD::SETNE),
|
2018-08-15 09:23:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_cvtss2si, INTR_TYPE_1OP, X86ISD::CVTS2SI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse_cvtss2si64, INTR_TYPE_1OP, X86ISD::CVTS2SI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse_cvttss2si, INTR_TYPE_1OP, X86ISD::CVTTS2SI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse_cvttss2si64, INTR_TYPE_1OP, X86ISD::CVTTS2SI, 0),
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_max_ps, INTR_TYPE_2OP, X86ISD::FMAX, 0),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_max_ss, INTR_TYPE_2OP, X86ISD::FMAXS, 0),
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_min_ps, INTR_TYPE_2OP, X86ISD::FMIN, 0),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_min_ss, INTR_TYPE_2OP, X86ISD::FMINS, 0),
|
2016-04-04 02:22:03 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_movmsk_ps, INTR_TYPE_1OP, X86ISD::MOVMSK, 0),
|
2016-01-26 08:55:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse_rcp_ps, INTR_TYPE_1OP, X86ISD::FRCP, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse_rsqrt_ps, INTR_TYPE_1OP, X86ISD::FRSQRT, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse_ucomieq_ss, COMI, X86ISD::UCOMI, ISD::SETEQ),
|
|
|
|
X86_INTRINSIC_DATA(sse_ucomige_ss, COMI, X86ISD::UCOMI, ISD::SETGE),
|
|
|
|
X86_INTRINSIC_DATA(sse_ucomigt_ss, COMI, X86ISD::UCOMI, ISD::SETGT),
|
|
|
|
X86_INTRINSIC_DATA(sse_ucomile_ss, COMI, X86ISD::UCOMI, ISD::SETLE),
|
|
|
|
X86_INTRINSIC_DATA(sse_ucomilt_ss, COMI, X86ISD::UCOMI, ISD::SETLT),
|
|
|
|
X86_INTRINSIC_DATA(sse_ucomineq_ss, COMI, X86ISD::UCOMI, ISD::SETNE),
|
2017-03-13 07:05:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cmp_pd, INTR_TYPE_3OP, X86ISD::CMPP, 0),
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_comieq_sd, COMI, X86ISD::COMI, ISD::SETEQ),
|
|
|
|
X86_INTRINSIC_DATA(sse2_comige_sd, COMI, X86ISD::COMI, ISD::SETGE),
|
|
|
|
X86_INTRINSIC_DATA(sse2_comigt_sd, COMI, X86ISD::COMI, ISD::SETGT),
|
|
|
|
X86_INTRINSIC_DATA(sse2_comile_sd, COMI, X86ISD::COMI, ISD::SETLE),
|
|
|
|
X86_INTRINSIC_DATA(sse2_comilt_sd, COMI, X86ISD::COMI, ISD::SETLT),
|
|
|
|
X86_INTRINSIC_DATA(sse2_comineq_sd, COMI, X86ISD::COMI, ISD::SETNE),
|
2016-11-10 15:47:17 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cvtpd2dq, INTR_TYPE_1OP, X86ISD::CVTP2SI, 0),
|
2016-08-31 23:09:34 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cvtpd2ps, INTR_TYPE_1OP, X86ISD::VFPROUND, 0),
|
2018-02-25 02:58:07 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cvtps2dq, INTR_TYPE_1OP, X86ISD::CVTP2SI, 0),
|
2018-08-15 09:23:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cvtsd2si, INTR_TYPE_1OP, X86ISD::CVTS2SI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_cvtsd2si64, INTR_TYPE_1OP, X86ISD::CVTS2SI, 0),
|
2016-11-24 20:13:46 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cvttpd2dq, INTR_TYPE_1OP, X86ISD::CVTTP2SI, 0),
|
2018-06-14 11:16:58 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cvttps2dq, INTR_TYPE_1OP, X86ISD::CVTTP2SI, 0),
|
2018-08-15 09:23:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_cvttsd2si, INTR_TYPE_1OP, X86ISD::CVTTS2SI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_cvttsd2si64, INTR_TYPE_1OP, X86ISD::CVTTS2SI, 0),
|
2014-12-08 17:03:08 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_max_pd, INTR_TYPE_2OP, X86ISD::FMAX, 0),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_max_sd, INTR_TYPE_2OP, X86ISD::FMAXS, 0),
|
2014-12-08 17:03:08 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_min_pd, INTR_TYPE_2OP, X86ISD::FMIN, 0),
|
2017-02-22 14:54:18 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_min_sd, INTR_TYPE_2OP, X86ISD::FMINS, 0),
|
2016-04-04 02:22:03 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_movmsk_pd, INTR_TYPE_1OP, X86ISD::MOVMSK, 0),
|
2014-12-08 17:03:08 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_packssdw_128, INTR_TYPE_2OP, X86ISD::PACKSS, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_packsswb_128, INTR_TYPE_2OP, X86ISD::PACKSS, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_packuswb_128, INTR_TYPE_2OP, X86ISD::PACKUS, 0),
|
2018-04-27 05:46:01 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_padds_b, INTR_TYPE_2OP, X86ISD::ADDS, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_padds_w, INTR_TYPE_2OP, X86ISD::ADDS, 0),
|
2016-10-30 14:56:16 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_pmadd_wd, INTR_TYPE_2OP, X86ISD::VPMADDWD, 0),
|
2016-04-04 02:22:03 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_pmovmskb_128, INTR_TYPE_1OP, X86ISD::MOVMSK, 0),
|
2014-12-08 17:03:08 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_pmulh_w, INTR_TYPE_2OP, ISD::MULHS, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_pmulhu_w, INTR_TYPE_2OP, ISD::MULHU, 0),
|
2015-11-25 03:51:26 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_psad_bw, INTR_TYPE_2OP, X86ISD::PSADBW, 0),
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_psll_d, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psll_q, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psll_w, INTR_TYPE_2OP, X86ISD::VSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_pslli_d, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_pslli_q, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_pslli_w, VSHIFT, X86ISD::VSHLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psra_d, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psra_w, INTR_TYPE_2OP, X86ISD::VSRA, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrai_d, VSHIFT, X86ISD::VSRAI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrai_w, VSHIFT, X86ISD::VSRAI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrl_d, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrl_q, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrl_w, INTR_TYPE_2OP, X86ISD::VSRL, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrli_d, VSHIFT, X86ISD::VSRLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrli_q, VSHIFT, X86ISD::VSRLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psrli_w, VSHIFT, X86ISD::VSRLI, 0),
|
2018-04-27 05:46:01 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_psubs_b, INTR_TYPE_2OP, X86ISD::SUBS, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse2_psubs_w, INTR_TYPE_2OP, X86ISD::SUBS, 0),
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(sse2_ucomieq_sd, COMI, X86ISD::UCOMI, ISD::SETEQ),
|
|
|
|
X86_INTRINSIC_DATA(sse2_ucomige_sd, COMI, X86ISD::UCOMI, ISD::SETGE),
|
|
|
|
X86_INTRINSIC_DATA(sse2_ucomigt_sd, COMI, X86ISD::UCOMI, ISD::SETGT),
|
|
|
|
X86_INTRINSIC_DATA(sse2_ucomile_sd, COMI, X86ISD::UCOMI, ISD::SETLE),
|
|
|
|
X86_INTRINSIC_DATA(sse2_ucomilt_sd, COMI, X86ISD::UCOMI, ISD::SETLT),
|
|
|
|
X86_INTRINSIC_DATA(sse2_ucomineq_sd, COMI, X86ISD::UCOMI, ISD::SETNE),
|
2017-07-30 14:02:59 +08:00
|
|
|
X86_INTRINSIC_DATA(sse3_addsub_pd, INTR_TYPE_2OP, X86ISD::ADDSUB, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse3_addsub_ps, INTR_TYPE_2OP, X86ISD::ADDSUB, 0),
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(sse3_hadd_pd, INTR_TYPE_2OP, X86ISD::FHADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse3_hadd_ps, INTR_TYPE_2OP, X86ISD::FHADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse3_hsub_pd, INTR_TYPE_2OP, X86ISD::FHSUB, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse3_hsub_ps, INTR_TYPE_2OP, X86ISD::FHSUB, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse41_insertps, INTR_TYPE_3OP, X86ISD::INSERTPS, 0),
|
2014-12-08 17:03:08 +08:00
|
|
|
X86_INTRINSIC_DATA(sse41_packusdw, INTR_TYPE_2OP, X86ISD::PACKUS, 0),
|
2017-11-23 21:50:27 +08:00
|
|
|
X86_INTRINSIC_DATA(sse41_phminposuw, INTR_TYPE_1OP, X86ISD::PHMINPOS, 0),
|
2017-11-13 10:03:00 +08:00
|
|
|
X86_INTRINSIC_DATA(sse41_round_pd, ROUNDP, X86ISD::VRNDSCALE, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse41_round_ps, ROUNDP, X86ISD::VRNDSCALE, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse41_round_sd, ROUNDS, X86ISD::VRNDSCALES, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse41_round_ss, ROUNDS, X86ISD::VRNDSCALES, 0),
|
2015-07-07 04:46:41 +08:00
|
|
|
X86_INTRINSIC_DATA(sse4a_extrqi, INTR_TYPE_3OP, X86ISD::EXTRQI, 0),
|
|
|
|
X86_INTRINSIC_DATA(sse4a_insertqi, INTR_TYPE_4OP, X86ISD::INSERTQI, 0),
|
2014-09-04 14:34:34 +08:00
|
|
|
X86_INTRINSIC_DATA(ssse3_phadd_d_128, INTR_TYPE_2OP, X86ISD::HADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(ssse3_phadd_w_128, INTR_TYPE_2OP, X86ISD::HADD, 0),
|
|
|
|
X86_INTRINSIC_DATA(ssse3_phsub_d_128, INTR_TYPE_2OP, X86ISD::HSUB, 0),
|
2014-12-08 17:03:08 +08:00
|
|
|
X86_INTRINSIC_DATA(ssse3_phsub_w_128, INTR_TYPE_2OP, X86ISD::HSUB, 0),
|
2016-10-30 14:56:16 +08:00
|
|
|
X86_INTRINSIC_DATA(ssse3_pmadd_ub_sw_128, INTR_TYPE_2OP, X86ISD::VPMADDUBSW, 0),
|
2016-10-30 02:41:45 +08:00
|
|
|
X86_INTRINSIC_DATA(ssse3_pmul_hr_sw_128, INTR_TYPE_2OP, X86ISD::MULHRS, 0),
|
2014-12-08 17:03:08 +08:00
|
|
|
X86_INTRINSIC_DATA(ssse3_pshuf_b_128, INTR_TYPE_2OP, X86ISD::PSHUFB, 0),
|
2018-09-08 00:58:39 +08:00
|
|
|
X86_INTRINSIC_DATA(subborrow_u32, ADX, X86ISD::SBB, 0),
|
|
|
|
X86_INTRINSIC_DATA(subborrow_u64, ADX, X86ISD::SBB, 0),
|
2018-06-06 18:52:10 +08:00
|
|
|
X86_INTRINSIC_DATA(tbm_bextri_u32, INTR_TYPE_2OP, X86ISD::BEXTR, 0),
|
|
|
|
X86_INTRINSIC_DATA(tbm_bextri_u64, INTR_TYPE_2OP, X86ISD::BEXTR, 0),
|
2017-11-07 15:13:03 +08:00
|
|
|
X86_INTRINSIC_DATA(vcvtph2ps_128, INTR_TYPE_1OP, X86ISD::CVTPH2PS, 0),
|
|
|
|
X86_INTRINSIC_DATA(vcvtph2ps_256, INTR_TYPE_1OP, X86ISD::CVTPH2PS, 0),
|
2017-11-08 12:00:30 +08:00
|
|
|
X86_INTRINSIC_DATA(vcvtps2ph_128, INTR_TYPE_2OP, X86ISD::CVTPS2PH, 0),
|
|
|
|
X86_INTRINSIC_DATA(vcvtps2ph_256, INTR_TYPE_2OP, X86ISD::CVTPS2PH, 0),
|
2017-11-26 17:36:41 +08:00
|
|
|
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8affineinvqb_128, INTR_TYPE_3OP,
|
|
|
|
X86ISD::GF2P8AFFINEINVQB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8affineinvqb_256, INTR_TYPE_3OP,
|
|
|
|
X86ISD::GF2P8AFFINEINVQB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8affineinvqb_512, INTR_TYPE_3OP,
|
|
|
|
X86ISD::GF2P8AFFINEINVQB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8affineqb_128, INTR_TYPE_3OP,
|
|
|
|
X86ISD::GF2P8AFFINEQB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8affineqb_256, INTR_TYPE_3OP,
|
|
|
|
X86ISD::GF2P8AFFINEQB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8affineqb_512, INTR_TYPE_3OP,
|
|
|
|
X86ISD::GF2P8AFFINEQB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8mulb_128, INTR_TYPE_2OP,
|
|
|
|
X86ISD::GF2P8MULB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8mulb_256, INTR_TYPE_2OP,
|
|
|
|
X86ISD::GF2P8MULB, 0),
|
|
|
|
X86_INTRINSIC_DATA(vgf2p8mulb_512, INTR_TYPE_2OP,
|
|
|
|
X86ISD::GF2P8MULB, 0),
|
|
|
|
|
2015-10-11 22:15:17 +08:00
|
|
|
X86_INTRINSIC_DATA(xop_vpcomb, INTR_TYPE_3OP, X86ISD::VPCOM, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpcomd, INTR_TYPE_3OP, X86ISD::VPCOM, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpcomq, INTR_TYPE_3OP, X86ISD::VPCOM, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpcomub, INTR_TYPE_3OP, X86ISD::VPCOMU, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpcomud, INTR_TYPE_3OP, X86ISD::VPCOMU, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpcomuq, INTR_TYPE_3OP, X86ISD::VPCOMU, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpcomuw, INTR_TYPE_3OP, X86ISD::VPCOMU, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpcomw, INTR_TYPE_3OP, X86ISD::VPCOM, 0),
|
2016-06-03 16:06:03 +08:00
|
|
|
X86_INTRINSIC_DATA(xop_vpermil2pd, INTR_TYPE_4OP, X86ISD::VPERMIL2, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpermil2pd_256, INTR_TYPE_4OP, X86ISD::VPERMIL2, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpermil2ps, INTR_TYPE_4OP, X86ISD::VPERMIL2, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpermil2ps_256, INTR_TYPE_4OP, X86ISD::VPERMIL2, 0),
|
2016-03-24 19:52:43 +08:00
|
|
|
X86_INTRINSIC_DATA(xop_vpperm, INTR_TYPE_3OP, X86ISD::VPPERM, 0),
|
2017-09-26 22:12:50 +08:00
|
|
|
X86_INTRINSIC_DATA(xop_vprotb, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vprotbi, INTR_TYPE_2OP, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vprotd, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vprotdi, INTR_TYPE_2OP, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vprotq, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vprotqi, INTR_TYPE_2OP, X86ISD::VROTLI, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vprotw, INTR_TYPE_2OP, ISD::ROTL, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vprotwi, INTR_TYPE_2OP, X86ISD::VROTLI, 0),
|
2015-09-30 16:17:50 +08:00
|
|
|
X86_INTRINSIC_DATA(xop_vpshab, INTR_TYPE_2OP, X86ISD::VPSHA, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpshad, INTR_TYPE_2OP, X86ISD::VPSHA, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpshaq, INTR_TYPE_2OP, X86ISD::VPSHA, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpshaw, INTR_TYPE_2OP, X86ISD::VPSHA, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpshlb, INTR_TYPE_2OP, X86ISD::VPSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpshld, INTR_TYPE_2OP, X86ISD::VPSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpshlq, INTR_TYPE_2OP, X86ISD::VPSHL, 0),
|
|
|
|
X86_INTRINSIC_DATA(xop_vpshlw, INTR_TYPE_2OP, X86ISD::VPSHL, 0)
|
2014-09-04 14:34:34 +08:00
|
|
|
};
|
2014-08-24 17:19:56 +08:00
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
/*
|
|
|
|
* Retrieve data for Intrinsic without chain.
|
|
|
|
* Return nullptr if intrinsic is not defined in the table.
|
|
|
|
*/
|
2018-06-26 04:27:46 +08:00
|
|
|
static const IntrinsicData* getIntrinsicWithoutChain(unsigned IntNo) {
|
2014-09-04 14:34:34 +08:00
|
|
|
const IntrinsicData *Data = std::lower_bound(std::begin(IntrinsicsWithoutChain),
|
|
|
|
std::end(IntrinsicsWithoutChain),
|
2018-06-26 04:27:46 +08:00
|
|
|
IntNo);
|
|
|
|
if (Data != std::end(IntrinsicsWithoutChain) && Data->Id == IntNo)
|
2014-09-04 14:34:34 +08:00
|
|
|
return Data;
|
|
|
|
return nullptr;
|
2014-08-24 17:19:56 +08:00
|
|
|
}
|
|
|
|
|
2014-09-04 14:34:34 +08:00
|
|
|
static void verifyIntrinsicTables() {
|
|
|
|
assert(std::is_sorted(std::begin(IntrinsicsWithoutChain),
|
|
|
|
std::end(IntrinsicsWithoutChain)) &&
|
|
|
|
std::is_sorted(std::begin(IntrinsicsWithChain),
|
|
|
|
std::end(IntrinsicsWithChain)) &&
|
|
|
|
"Intrinsic data tables should be sorted by Intrinsic ID");
|
2015-11-30 07:18:32 +08:00
|
|
|
assert((std::adjacent_find(std::begin(IntrinsicsWithoutChain),
|
|
|
|
std::end(IntrinsicsWithoutChain)) ==
|
|
|
|
std::end(IntrinsicsWithoutChain)) &&
|
|
|
|
(std::adjacent_find(std::begin(IntrinsicsWithChain),
|
|
|
|
std::end(IntrinsicsWithChain)) ==
|
|
|
|
std::end(IntrinsicsWithChain)) &&
|
|
|
|
"Intrinsic data tables should have unique entries");
|
2014-08-24 17:19:56 +08:00
|
|
|
}
|
2014-09-04 14:34:34 +08:00
|
|
|
} // End llvm namespace
|
2014-08-24 17:19:56 +08:00
|
|
|
|
|
|
|
#endif
|