2012-02-18 20:03:15 +08:00
|
|
|
//===-- HexagonIntrinsics.td - Instruction intrinsics ------*- tablegen -*-===//
|
2011-12-13 05:14:40 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// This is populated based on the following specs:
|
|
|
|
// Hexagon V2 Architecture
|
|
|
|
// Application-Level Specification
|
|
|
|
// 80-V9418-8 Rev. B
|
|
|
|
// March 4, 2008
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2015-01-20 02:33:58 +08:00
|
|
|
class T_I_pat <InstHexagon MI, Intrinsic IntID>
|
|
|
|
: Pat <(IntID imm:$Is),
|
|
|
|
(MI imm:$Is)>;
|
|
|
|
|
|
|
|
class T_R_pat <InstHexagon MI, Intrinsic IntID>
|
|
|
|
: Pat <(IntID I32:$Rs),
|
|
|
|
(MI I32:$Rs)>;
|
|
|
|
|
2015-01-20 02:56:19 +08:00
|
|
|
class T_II_pat <InstHexagon MI, Intrinsic IntID, PatFrag Imm1, PatFrag Imm2>
|
|
|
|
: Pat<(IntID Imm1:$Is, Imm2:$It),
|
|
|
|
(MI Imm1:$Is, Imm2:$It)>;
|
|
|
|
|
2015-01-20 02:22:19 +08:00
|
|
|
class T_RI_pat <InstHexagon MI, Intrinsic IntID, PatLeaf ImmPred = PatLeaf<(i32 imm)>>
|
|
|
|
: Pat<(IntID I32:$Rs, ImmPred:$It),
|
|
|
|
(MI I32:$Rs, ImmPred:$It)>;
|
|
|
|
|
|
|
|
class T_IR_pat <InstHexagon MI, Intrinsic IntID, PatFrag ImmPred = PatLeaf<(i32 imm)>>
|
|
|
|
: Pat<(IntID ImmPred:$Is, I32:$Rt),
|
|
|
|
(MI ImmPred:$Is, I32:$Rt)>;
|
|
|
|
|
2015-01-17 04:38:54 +08:00
|
|
|
class T_RR_pat <InstHexagon MI, Intrinsic IntID>
|
|
|
|
: Pat <(IntID I32:$Rs, I32:$Rt),
|
|
|
|
(MI I32:$Rs, I32:$Rt)>;
|
|
|
|
|
2015-01-20 02:56:19 +08:00
|
|
|
class T_QII_pat <InstHexagon MI, Intrinsic IntID, PatFrag Imm1, PatFrag Imm2>
|
|
|
|
: Pat <(IntID (i32 PredRegs:$Ps), Imm1:$Is, Imm2:$It),
|
|
|
|
(MI PredRegs:$Ps, Imm1:$Is, Imm2:$It)>;
|
|
|
|
|
|
|
|
class T_QRI_pat <InstHexagon MI, Intrinsic IntID, PatFrag ImmPred>
|
|
|
|
: Pat <(IntID (i32 PredRegs:$Ps), I32:$Rs, ImmPred:$Is),
|
|
|
|
(MI PredRegs:$Ps, I32:$Rs, ImmPred:$Is)>;
|
|
|
|
|
|
|
|
class T_QIR_pat <InstHexagon MI, Intrinsic IntID, PatFrag ImmPred>
|
|
|
|
: Pat <(IntID (i32 PredRegs:$Ps), ImmPred:$Is, I32:$Rs),
|
|
|
|
(MI PredRegs:$Ps, ImmPred:$Is, I32:$Rs)>;
|
|
|
|
|
2015-01-17 05:36:34 +08:00
|
|
|
class T_RRR_pat <InstHexagon MI, Intrinsic IntID>
|
|
|
|
: Pat <(IntID I32:$Rs, I32:$Rt, I32:$Ru),
|
|
|
|
(MI I32:$Rs, I32:$Rt, I32:$Ru)>;
|
|
|
|
|
2015-01-20 01:36:32 +08:00
|
|
|
class T_PRR_pat <InstHexagon MI, Intrinsic IntID>
|
|
|
|
: Pat <(IntID I64:$Rs, I32:$Rt, I32:$Ru),
|
|
|
|
(MI DoubleRegs:$Rs, I32:$Rt, I32:$Ru)>;
|
|
|
|
|
2015-01-17 04:38:54 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// MPYS / Multipy signed/unsigned halfwords
|
|
|
|
//Rd=mpy[u](Rs.[H|L],Rt.[H|L])[:<<1][:rnd][:sat]
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpy_ll_s1, int_hexagon_M2_mpy_ll_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_ll_s0, int_hexagon_M2_mpy_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_lh_s1, int_hexagon_M2_mpy_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_lh_s0, int_hexagon_M2_mpy_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_hl_s1, int_hexagon_M2_mpy_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_hl_s0, int_hexagon_M2_mpy_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_hh_s1, int_hexagon_M2_mpy_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_hh_s0, int_hexagon_M2_mpy_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpyu_ll_s1, int_hexagon_M2_mpyu_ll_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyu_ll_s0, int_hexagon_M2_mpyu_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyu_lh_s1, int_hexagon_M2_mpyu_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyu_lh_s0, int_hexagon_M2_mpyu_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyu_hl_s1, int_hexagon_M2_mpyu_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyu_hl_s0, int_hexagon_M2_mpyu_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyu_hh_s1, int_hexagon_M2_mpyu_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyu_hh_s0, int_hexagon_M2_mpyu_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpy_sat_ll_s1, int_hexagon_M2_mpy_sat_ll_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_ll_s0, int_hexagon_M2_mpy_sat_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_lh_s1, int_hexagon_M2_mpy_sat_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_lh_s0, int_hexagon_M2_mpy_sat_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_hl_s1, int_hexagon_M2_mpy_sat_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_hl_s0, int_hexagon_M2_mpy_sat_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_hh_s1, int_hexagon_M2_mpy_sat_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_hh_s0, int_hexagon_M2_mpy_sat_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_ll_s1, int_hexagon_M2_mpy_rnd_ll_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_ll_s0, int_hexagon_M2_mpy_rnd_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_lh_s1, int_hexagon_M2_mpy_rnd_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_lh_s0, int_hexagon_M2_mpy_rnd_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_hl_s1, int_hexagon_M2_mpy_rnd_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_hl_s0, int_hexagon_M2_mpy_rnd_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_hh_s1, int_hexagon_M2_mpy_rnd_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_rnd_hh_s0, int_hexagon_M2_mpy_rnd_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_ll_s1, int_hexagon_M2_mpy_sat_rnd_ll_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_ll_s0, int_hexagon_M2_mpy_sat_rnd_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_lh_s1, int_hexagon_M2_mpy_sat_rnd_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_lh_s0, int_hexagon_M2_mpy_sat_rnd_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_hl_s1, int_hexagon_M2_mpy_sat_rnd_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_hl_s0, int_hexagon_M2_mpy_sat_rnd_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_hh_s1, int_hexagon_M2_mpy_sat_rnd_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpy_sat_rnd_hh_s0, int_hexagon_M2_mpy_sat_rnd_hh_s0>;
|
|
|
|
|
2015-01-17 05:36:34 +08:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// MPYS / Multipy signed/unsigned halfwords and add/subtract the
|
|
|
|
// result from the accumulator.
|
|
|
|
//Rx [-+]= mpy[u](Rs.[H|L],Rt.[H|L])[:<<1][:sat]
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_ll_s1, int_hexagon_M2_mpy_acc_ll_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_ll_s0, int_hexagon_M2_mpy_acc_ll_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_lh_s1, int_hexagon_M2_mpy_acc_lh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_lh_s0, int_hexagon_M2_mpy_acc_lh_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_hl_s1, int_hexagon_M2_mpy_acc_hl_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_hl_s0, int_hexagon_M2_mpy_acc_hl_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_hh_s1, int_hexagon_M2_mpy_acc_hh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_hh_s0, int_hexagon_M2_mpy_acc_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_ll_s1, int_hexagon_M2_mpyu_acc_ll_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_ll_s0, int_hexagon_M2_mpyu_acc_ll_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_lh_s1, int_hexagon_M2_mpyu_acc_lh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_lh_s0, int_hexagon_M2_mpyu_acc_lh_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_hl_s1, int_hexagon_M2_mpyu_acc_hl_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_hl_s0, int_hexagon_M2_mpyu_acc_hl_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_hh_s1, int_hexagon_M2_mpyu_acc_hh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_acc_hh_s0, int_hexagon_M2_mpyu_acc_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_ll_s1, int_hexagon_M2_mpy_nac_ll_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_ll_s0, int_hexagon_M2_mpy_nac_ll_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_lh_s1, int_hexagon_M2_mpy_nac_lh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_lh_s0, int_hexagon_M2_mpy_nac_lh_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_hl_s1, int_hexagon_M2_mpy_nac_hl_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_hl_s0, int_hexagon_M2_mpy_nac_hl_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_hh_s1, int_hexagon_M2_mpy_nac_hh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_hh_s0, int_hexagon_M2_mpy_nac_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_ll_s1, int_hexagon_M2_mpyu_nac_ll_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_ll_s0, int_hexagon_M2_mpyu_nac_ll_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_lh_s1, int_hexagon_M2_mpyu_nac_lh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_lh_s0, int_hexagon_M2_mpyu_nac_lh_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_hl_s1, int_hexagon_M2_mpyu_nac_hl_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_hl_s0, int_hexagon_M2_mpyu_nac_hl_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_hh_s1, int_hexagon_M2_mpyu_nac_hh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpyu_nac_hh_s0, int_hexagon_M2_mpyu_nac_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_ll_s1, int_hexagon_M2_mpy_acc_sat_ll_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_ll_s0, int_hexagon_M2_mpy_acc_sat_ll_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_lh_s1, int_hexagon_M2_mpy_acc_sat_lh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_lh_s0, int_hexagon_M2_mpy_acc_sat_lh_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_hl_s1, int_hexagon_M2_mpy_acc_sat_hl_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_hl_s0, int_hexagon_M2_mpy_acc_sat_hl_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_hh_s1, int_hexagon_M2_mpy_acc_sat_hh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_acc_sat_hh_s0, int_hexagon_M2_mpy_acc_sat_hh_s0>;
|
|
|
|
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_ll_s1, int_hexagon_M2_mpy_nac_sat_ll_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_ll_s0, int_hexagon_M2_mpy_nac_sat_ll_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_lh_s1, int_hexagon_M2_mpy_nac_sat_lh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_lh_s0, int_hexagon_M2_mpy_nac_sat_lh_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_hl_s1, int_hexagon_M2_mpy_nac_sat_hl_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_hl_s0, int_hexagon_M2_mpy_nac_sat_hl_s0>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_hh_s1, int_hexagon_M2_mpy_nac_sat_hh_s1>;
|
|
|
|
def : T_RRR_pat <M2_mpy_nac_sat_hh_s0, int_hexagon_M2_mpy_nac_sat_hh_s0>;
|
|
|
|
|
2015-01-17 05:41:57 +08:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Multiply signed/unsigned halfwords with and without saturation and rounding
|
|
|
|
// into a 64-bits destination register.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpyd_hh_s0, int_hexagon_M2_mpyd_hh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_hl_s0, int_hexagon_M2_mpyd_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_lh_s0, int_hexagon_M2_mpyd_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_ll_s0, int_hexagon_M2_mpyd_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_hh_s1, int_hexagon_M2_mpyd_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyd_hl_s1, int_hexagon_M2_mpyd_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyd_lh_s1, int_hexagon_M2_mpyd_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyd_ll_s1, int_hexagon_M2_mpyd_ll_s1>;
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_hh_s0, int_hexagon_M2_mpyd_rnd_hh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_hl_s0, int_hexagon_M2_mpyd_rnd_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_lh_s0, int_hexagon_M2_mpyd_rnd_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_ll_s0, int_hexagon_M2_mpyd_rnd_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_hh_s1, int_hexagon_M2_mpyd_rnd_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_hl_s1, int_hexagon_M2_mpyd_rnd_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_lh_s1, int_hexagon_M2_mpyd_rnd_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyd_rnd_ll_s1, int_hexagon_M2_mpyd_rnd_ll_s1>;
|
|
|
|
|
|
|
|
def : T_RR_pat <M2_mpyud_hh_s0, int_hexagon_M2_mpyud_hh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyud_hl_s0, int_hexagon_M2_mpyud_hl_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyud_lh_s0, int_hexagon_M2_mpyud_lh_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyud_ll_s0, int_hexagon_M2_mpyud_ll_s0>;
|
|
|
|
def : T_RR_pat <M2_mpyud_hh_s1, int_hexagon_M2_mpyud_hh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyud_hl_s1, int_hexagon_M2_mpyud_hl_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyud_lh_s1, int_hexagon_M2_mpyud_lh_s1>;
|
|
|
|
def : T_RR_pat <M2_mpyud_ll_s1, int_hexagon_M2_mpyud_ll_s1>;
|
|
|
|
|
2015-01-20 01:36:32 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// MPYS / Multipy signed/unsigned halfwords and add/subtract the
|
|
|
|
// result from the 64-bit destination register.
|
|
|
|
//Rxx [-+]= mpy[u](Rs.[H|L],Rt.[H|L])[:<<1][:sat]
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_hh_s0, int_hexagon_M2_mpyd_acc_hh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_hl_s0, int_hexagon_M2_mpyd_acc_hl_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_lh_s0, int_hexagon_M2_mpyd_acc_lh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_ll_s0, int_hexagon_M2_mpyd_acc_ll_s0>;
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_hh_s1, int_hexagon_M2_mpyd_acc_hh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_hl_s1, int_hexagon_M2_mpyd_acc_hl_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_lh_s1, int_hexagon_M2_mpyd_acc_lh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_acc_ll_s1, int_hexagon_M2_mpyd_acc_ll_s1>;
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_hh_s0, int_hexagon_M2_mpyd_nac_hh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_hl_s0, int_hexagon_M2_mpyd_nac_hl_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_lh_s0, int_hexagon_M2_mpyd_nac_lh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_ll_s0, int_hexagon_M2_mpyd_nac_ll_s0>;
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_hh_s1, int_hexagon_M2_mpyd_nac_hh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_hl_s1, int_hexagon_M2_mpyd_nac_hl_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_lh_s1, int_hexagon_M2_mpyd_nac_lh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyd_nac_ll_s1, int_hexagon_M2_mpyd_nac_ll_s1>;
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_hh_s0, int_hexagon_M2_mpyud_acc_hh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_hl_s0, int_hexagon_M2_mpyud_acc_hl_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_lh_s0, int_hexagon_M2_mpyud_acc_lh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_ll_s0, int_hexagon_M2_mpyud_acc_ll_s0>;
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_hh_s1, int_hexagon_M2_mpyud_acc_hh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_hl_s1, int_hexagon_M2_mpyud_acc_hl_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_lh_s1, int_hexagon_M2_mpyud_acc_lh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_acc_ll_s1, int_hexagon_M2_mpyud_acc_ll_s1>;
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_hh_s0, int_hexagon_M2_mpyud_nac_hh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_hl_s0, int_hexagon_M2_mpyud_nac_hl_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_lh_s0, int_hexagon_M2_mpyud_nac_lh_s0>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_ll_s0, int_hexagon_M2_mpyud_nac_ll_s0>;
|
|
|
|
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_hh_s1, int_hexagon_M2_mpyud_nac_hh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_hl_s1, int_hexagon_M2_mpyud_nac_hl_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_lh_s1, int_hexagon_M2_mpyud_nac_lh_s1>;
|
|
|
|
def : T_PRR_pat <M2_mpyud_nac_ll_s1, int_hexagon_M2_mpyud_nac_ll_s1>;
|
|
|
|
|
2015-01-20 02:22:19 +08:00
|
|
|
/********************************************************************
|
|
|
|
* ALU32/ALU *
|
|
|
|
*********************************************************************/
|
|
|
|
def : T_RR_pat<A2_add, int_hexagon_A2_add>;
|
|
|
|
def : T_RI_pat<ADD_ri, int_hexagon_A2_addi>;
|
|
|
|
def : T_RR_pat<A2_sub, int_hexagon_A2_sub>;
|
|
|
|
def : T_IR_pat<SUB_ri, int_hexagon_A2_subri>;
|
|
|
|
def : T_RR_pat<A2_and, int_hexagon_A2_and>;
|
|
|
|
def : T_RI_pat<AND_ri, int_hexagon_A2_andir>;
|
|
|
|
def : T_RR_pat<A2_or, int_hexagon_A2_or>;
|
|
|
|
def : T_RI_pat<OR_ri, int_hexagon_A2_orir>;
|
|
|
|
def : T_RR_pat<A2_xor, int_hexagon_A2_xor>;
|
|
|
|
def : T_RR_pat<A2_combinew, int_hexagon_A2_combinew>;
|
|
|
|
|
2015-01-20 02:33:58 +08:00
|
|
|
// Assembler mapped from Rd32=not(Rs32) to Rd32=sub(#-1,Rs32)
|
|
|
|
def : Pat <(int_hexagon_A2_not (I32:$Rs)),
|
|
|
|
(SUB_ri -1, IntRegs:$Rs)>;
|
|
|
|
|
|
|
|
// Assembler mapped from Rd32=neg(Rs32) to Rd32=sub(#0,Rs32)
|
|
|
|
def : Pat <(int_hexagon_A2_neg IntRegs:$Rs),
|
|
|
|
(SUB_ri 0, IntRegs:$Rs)>;
|
|
|
|
|
|
|
|
// Transfer immediate
|
|
|
|
def : Pat <(int_hexagon_A2_tfril (I32:$Rs), u16_0ImmPred:$Is),
|
|
|
|
(A2_tfril IntRegs:$Rs, u16_0ImmPred:$Is)>;
|
|
|
|
def : Pat <(int_hexagon_A2_tfrih (I32:$Rs), u16_0ImmPred:$Is),
|
|
|
|
(A2_tfrih IntRegs:$Rs, u16_0ImmPred:$Is)>;
|
|
|
|
|
|
|
|
// Transfer Register/immediate.
|
|
|
|
def : T_R_pat <A2_tfr, int_hexagon_A2_tfr>;
|
|
|
|
def : T_I_pat <A2_tfrsi, int_hexagon_A2_tfrsi>;
|
|
|
|
|
|
|
|
// Assembler mapped from Rdd32=Rss32 to Rdd32=combine(Rss.H32,Rss.L32)
|
|
|
|
def : Pat<(int_hexagon_A2_tfrp DoubleRegs:$src),
|
|
|
|
(A2_combinew (HiReg DoubleRegs:$src), (LoReg DoubleRegs:$src))>;
|
|
|
|
|
2015-01-20 02:56:19 +08:00
|
|
|
/********************************************************************
|
|
|
|
* ALU32/PERM *
|
|
|
|
*********************************************************************/
|
|
|
|
// Combine
|
|
|
|
def: T_RR_pat<A2_combine_hh, int_hexagon_A2_combine_hh>;
|
|
|
|
def: T_RR_pat<A2_combine_hl, int_hexagon_A2_combine_hl>;
|
|
|
|
def: T_RR_pat<A2_combine_lh, int_hexagon_A2_combine_lh>;
|
|
|
|
def: T_RR_pat<A2_combine_ll, int_hexagon_A2_combine_ll>;
|
|
|
|
|
|
|
|
def: T_II_pat<A2_combineii, int_hexagon_A2_combineii, s8ExtPred, s8ImmPred>;
|
|
|
|
|
|
|
|
def: Pat<(i32 (int_hexagon_C2_mux (I32:$Rp), (I32:$Rs),
|
|
|
|
(I32:$Rt))),
|
|
|
|
(i32 (C2_mux (C2_tfrrp IntRegs:$Rp), IntRegs:$Rs, IntRegs:$Rt))>;
|
|
|
|
|
2015-01-20 04:31:18 +08:00
|
|
|
// Mux
|
|
|
|
def : T_QRI_pat<C2_muxir, int_hexagon_C2_muxir, s8ExtPred>;
|
|
|
|
def : T_QIR_pat<C2_muxri, int_hexagon_C2_muxri, s8ExtPred>;
|
|
|
|
def : T_QII_pat<C2_muxii, int_hexagon_C2_muxii, s8ExtPred, s8ImmPred>;
|
|
|
|
|
2015-01-20 02:56:19 +08:00
|
|
|
// Shift halfword
|
|
|
|
def : T_R_pat<A2_aslh, int_hexagon_A2_aslh>;
|
|
|
|
def : T_R_pat<A2_asrh, int_hexagon_A2_asrh>;
|
|
|
|
def : T_R_pat<A2_asrh, int_hexagon_SI_to_SXTHI_asrh>;
|
|
|
|
|
|
|
|
// Sign/zero extend
|
|
|
|
def : T_R_pat<A2_sxth, int_hexagon_A2_sxth>;
|
|
|
|
def : T_R_pat<A2_sxtb, int_hexagon_A2_sxtb>;
|
|
|
|
def : T_R_pat<A2_zxth, int_hexagon_A2_zxth>;
|
|
|
|
def : T_R_pat<A2_zxtb, int_hexagon_A2_zxtb>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
//
|
|
|
|
// ALU 32 types.
|
|
|
|
//
|
|
|
|
|
|
|
|
class qi_ALU32_sisi<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs PredRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class qi_ALU32_sis10<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs PredRegs:$dst), (ins IntRegs:$src1, s10Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class qi_ALU32_sis8<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs PredRegs:$dst), (ins IntRegs:$src1, s8Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class qi_ALU32_siu8<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs PredRegs:$dst), (ins IntRegs:$src1, u8Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class qi_ALU32_siu9<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs PredRegs:$dst), (ins IntRegs:$src1, u9Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU32_qisisi<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2,
|
|
|
|
IntRegs:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2, $src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2,
|
|
|
|
IntRegs:$src3))]>;
|
|
|
|
|
|
|
|
class si_ALU32_qis8si<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, s8Imm:$src2,
|
|
|
|
IntRegs:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2, $src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2,
|
|
|
|
IntRegs:$src3))]>;
|
|
|
|
|
|
|
|
class si_ALU32_qisis8<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2,
|
|
|
|
s8Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2,
|
|
|
|
imm:$src3))]>;
|
|
|
|
|
|
|
|
class si_ALU32_qis8s8<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, s8Imm:$src2, s8Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2, imm:$src3))]>;
|
|
|
|
|
|
|
|
class si_ALU32_sisi<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU32_sisi_sat<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU32_sisi_rnd<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU32_sis16<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, s16Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU32_sis10<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, s10Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU32_s10si<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins s10Imm:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "(#$src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID imm:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_lo_ALU32_siu16<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, u16Imm:$src2),
|
|
|
|
!strconcat("$dst.l = ", !strconcat(opc , "#$src2")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_hi_ALU32_siu16<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, u16Imm:$src2),
|
|
|
|
!strconcat("$dst.h = ", !strconcat(opc , "#$src2")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU32_s16<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins s16Imm:$src1),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "#$src1")),
|
|
|
|
[(set IntRegs:$dst, (IntID imm:$src1))]>;
|
|
|
|
|
|
|
|
class di_ALU32_s8<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs DoubleRegs:$dst), (ins s8Imm:$src1),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "#$src1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID imm:$src1))]>;
|
|
|
|
|
|
|
|
class di_ALU64_di<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins DoubleRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "$src")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_ALU32_si<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_ALU32_si_tfr<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "$src")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
//
|
|
|
|
// ALU 64 types.
|
|
|
|
//
|
|
|
|
|
|
|
|
class si_ALU64_si_sat<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_ALU64_didi<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_sidi<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins IntRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_didi<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_qididi<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins IntRegs:$src1, DoubleRegs:$src2,
|
|
|
|
DoubleRegs:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2, $src3)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, DoubleRegs:$src2,
|
|
|
|
DoubleRegs:$src3))]>;
|
|
|
|
|
|
|
|
class di_ALU64_sisi<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_didi_sat<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_didi_rnd<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_didi_crnd<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):crnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_didi_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):rnd:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_ALU64_didi_crnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):crnd:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class qi_ALU64_didi<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs PredRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_sat_lh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_sat_hh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_sat_lh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_sat_hl<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_sat_ll<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_hh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_hl<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_lh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_l16_ll<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_sat_hh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):sat:<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_sat_lh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):sat:<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_sat_hl<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):sat:<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_sat_ll<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):sat:<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_hh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H):<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_hl<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L):<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_lh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H):<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_h16_ll<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L):<<16")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_lh<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_ll<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_ALU64_sisi_sat<string opc, Intrinsic IntID>
|
|
|
|
: ALU64_rr<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
//
|
|
|
|
// SInst classes.
|
|
|
|
//
|
|
|
|
|
|
|
|
class qi_SInst_qi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class qi_SInst_qi_pxfer<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "$src")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class qi_SInst_qiqi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class qi_SInst_qiqi_neg<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, !$src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_SInst_di<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src))]>;
|
|
|
|
|
|
|
|
class di_SInst_di_sat<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_SInst_di<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins DoubleRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src)")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_SInst_di_sat<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins DoubleRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src))]>;
|
|
|
|
|
|
|
|
class di_SInst_disi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_SInst_didi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_SInst_si<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1))]>;
|
|
|
|
|
|
|
|
class si_SInst_sisiu3<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2, u3Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2,
|
|
|
|
imm:$src3))]>;
|
|
|
|
|
|
|
|
class si_SInst_diu5<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, u5Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_disi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_sidi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_SInst_disisi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, IntRegs:$src2,
|
|
|
|
IntRegs:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2, $src3)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, IntRegs:$src2,
|
|
|
|
IntRegs:$src3))]>;
|
|
|
|
|
|
|
|
class di_SInst_sisi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class qi_SInst_siu5<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src1, u5Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class qi_SInst_siu6<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src1, u6Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class qi_SInst_sisi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_si<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_SInst_si_sat<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class di_SInst_qi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_SInst_qi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "$src")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_SInst_qiqi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class qi_SInst_si<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs PredRegs:$dst), (ins IntRegs:$src),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "$src")),
|
|
|
|
[(set PredRegs:$dst, (IntID IntRegs:$src))]>;
|
|
|
|
|
|
|
|
class si_SInst_sisi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_SInst_diu6<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, u6Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_siu5<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, u5Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_siu5_rnd<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, u5Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2):rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_siu5u5<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, u5Imm:$src2, u5Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2, imm:$src3))]>;
|
|
|
|
|
|
|
|
class si_SInst_sisisi_acc<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisisi_nac<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didisi_acc<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didisi_nac<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1, IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisiu5u5<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
u5Imm:$src2, u5Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, #$src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
imm:$src2, imm:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisidi<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didiu6u6<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
u6Imm:$src2, u6Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, #$src2, #$src3)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
imm:$src2, imm:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_dididi<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_diu6u6<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, u6Imm:$src2,
|
|
|
|
u6Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2, #$src3)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, imm:$src2,
|
|
|
|
imm:$src3))]>;
|
|
|
|
|
|
|
|
class di_SInst_didiqi<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2,
|
|
|
|
IntRegs:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2, $src3)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2,
|
|
|
|
IntRegs:$src3))]>;
|
|
|
|
|
|
|
|
class di_SInst_didiu3<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2,
|
|
|
|
u3Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2, #$src3)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2,
|
|
|
|
imm:$src3))]>;
|
|
|
|
|
|
|
|
class di_SInst_didisi_or<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst |= ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didisi_and<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst &= ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didiu6_and<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
u6Imm:$src2),
|
|
|
|
!strconcat("$dst &= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didiu6_or<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
u6Imm:$src2),
|
|
|
|
!strconcat("$dst |= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didiu6_xor<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
u6Imm:$src2),
|
|
|
|
!strconcat("$dst ^= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisisi_and<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst &= ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisisi_or<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst |= ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
|
|
|
|
class si_SInst_sisiu5_and<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
u5Imm:$src2),
|
|
|
|
!strconcat("$dst &= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisiu5_or<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
u5Imm:$src2),
|
|
|
|
!strconcat("$dst |= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisiu5_xor<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
u5Imm:$src2),
|
|
|
|
!strconcat("$dst ^= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisiu5_acc<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
u5Imm:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_SInst_sisiu5_nac<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
u5Imm:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didiu6_acc<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
u5Imm:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1, imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_SInst_didiu6_nac<string opc, Intrinsic IntID>
|
|
|
|
: SInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
u5Imm:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
imm:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// MInst classes.
|
|
|
|
//
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1:rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):<<1:rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):<<1:rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):<<1:rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_rnd_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):rnd")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2*):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1, $src2*):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1, $src2):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_s1_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1, $src2*):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_s1_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1, $src2*):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_s8s8<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins s8Imm:$src1, s8Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "(#$src1, #$src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID imm:$src1, imm:$src2))]>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
class si_MInst_sis9<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, s9Imm:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, #$src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, imm:$src2))]>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class si_MInst_sisi<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
|
|
|
|
class si_MInst_sisi_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2014-05-20 00:22:11 +08:00
|
|
|
class si_MInst_sisi_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class si_MInst_sisi_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2014-05-20 00:22:11 +08:00
|
|
|
class si_MInst_sisi_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class si_MInst_sisi_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2014-05-20 00:22:11 +08:00
|
|
|
class si_MInst_sisi_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class si_MInst_sisi_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2014-05-20 00:22:11 +08:00
|
|
|
class si_MInst_sisi_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class si_MInst_sisi_up<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_didi<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_didi_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2*)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_s1_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2*):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_didi_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2):<<1:rnd:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_didi_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_didi_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2):rnd:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_sisi_sat<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
class si_SInst_didi_sat<string opc, Intrinsic IntID>
|
|
|
|
: SInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_SInst_disi_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class si_MInst_sisi_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_l_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2.L):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_h_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2.H):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2*):rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_s1_rnd_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2*):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2):rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_xacc<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
IntRegs:$src3),
|
|
|
|
!strconcat("$dst ^= ", !strconcat(opc , "($src2, $src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
IntRegs:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
IntRegs:$src3),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src2, $src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
IntRegs:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
IntRegs:$src3),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src2, $src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
IntRegs:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisis8_acc<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
s8Imm:$src3),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
imm:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisis8_nac<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
s8Imm:$src3),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
imm:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisiu4u5<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
u4Imm:$src2, u5Imm:$src3),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, #$src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
imm:$src2, imm:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisiu8_acc<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
u8Imm:$src3),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
imm:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisiu8_nac<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
u8Imm:$src3),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src2, #$src3)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src2,
|
|
|
|
imm:$src3))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.H, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.H, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_sat_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.H, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.H, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_acc_sat_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):<<1")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hh_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hh_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hl_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_hl_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_lh_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_lh_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_ll_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_sisisi_nac_ll_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs IntRegs:$dst), (ins IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_ALU32_sisi<string opc, Intrinsic IntID>
|
|
|
|
: ALU32_rr<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_sat_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2*):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_sisi_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_didi_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_didi_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1, $src2):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_didi_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
2014-05-20 00:22:11 +08:00
|
|
|
class si_MInst_sisi_sat_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.H, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.H):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.H):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1.L, $src2.L):sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.L, $src2.L):<<1:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1:rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc ,
|
|
|
|
"($src1.H, $src2.H):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.L):rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.L):<<1:rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.L):rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.L):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.H):rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.H):rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.H):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.H):<<1:rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.L):rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_sat_rnd_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.L):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.L):rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_sisi_rnd_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins IntRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.L):<<1:rnd")),
|
|
|
|
[(set IntRegs:$dst, (IntID IntRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class di_MInst_dididi_acc_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2):sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_dididi_acc_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1, $src2):rnd:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
class di_MInst_dididi_acc_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1, $src2):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
class di_MInst_dididi_acc_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1, $src2):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_dididi_acc_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1, $src2):<<1:rnd:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_dididi_acc<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_dididi_acc_conj<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1, $src2*)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
DoubleRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.H, $src2.H)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.H, $src2.L)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.H):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.L):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.H):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.L):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_hh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.H, $src2.H)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_hl<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.H, $src2.L)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_lh<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.L, $src2.H)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_ll<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ", !strconcat(opc , "($src1.L, $src2.L)")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_hh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.H):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_hl_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ",
|
|
|
|
!strconcat(opc , "($src1.H, $src2.L):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_lh_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.H):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_nac_ll_s1<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst -= ",
|
|
|
|
!strconcat(opc , "($src1.L, $src2.L):<<1")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disisi_acc_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1, $src2):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2, IntRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class di_MInst_disi_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs DoubleRegs:$dst), (ins DoubleRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class di_MInst_didisi_acc_s1_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst_acc<(outs DoubleRegs:$dst), (ins DoubleRegs:$dst2, DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2),
|
|
|
|
!strconcat("$dst += ",
|
|
|
|
!strconcat(opc , "($src1, $src2):<<1:sat")),
|
|
|
|
[(set DoubleRegs:$dst, (IntID DoubleRegs:$dst2,
|
|
|
|
DoubleRegs:$src1,
|
|
|
|
IntRegs:$src2))],
|
|
|
|
"$dst2 = $dst">;
|
|
|
|
|
|
|
|
class si_MInst_disi_s1_rnd_sat<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, IntRegs:$src2),
|
|
|
|
!strconcat("$dst = ",
|
|
|
|
!strconcat(opc , "($src1, $src2):<<1:rnd:sat")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, IntRegs:$src2))]>;
|
|
|
|
|
|
|
|
class si_MInst_didi<string opc, Intrinsic IntID>
|
|
|
|
: MInst<(outs IntRegs:$dst), (ins DoubleRegs:$src1, DoubleRegs:$src2),
|
|
|
|
!strconcat("$dst = ", !strconcat(opc , "($src1, $src2)")),
|
|
|
|
[(set IntRegs:$dst, (IntID DoubleRegs:$src1, DoubleRegs:$src2))]>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
//
|
|
|
|
// LDInst classes.
|
|
|
|
//
|
2014-11-26 08:46:26 +08:00
|
|
|
let mayLoad = 1, hasSideEffects = 0 in
|
2012-05-12 03:39:13 +08:00
|
|
|
class di_LDInstPI_diu4<string opc, Intrinsic IntID>
|
|
|
|
: LDInstPI<(outs IntRegs:$dst, DoubleRegs:$dst2),
|
2014-12-20 02:56:10 +08:00
|
|
|
(ins IntRegs:$src1, IntRegs:$src2, CtrRegs:$src3, s4Imm:$offset),
|
2012-05-12 03:39:13 +08:00
|
|
|
"$dst2 = memd($src1++#$offset:circ($src3))",
|
|
|
|
[],
|
|
|
|
"$src1 = $dst">;
|
2011-12-13 05:14:40 +08:00
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU32/PERM *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU32 / PERM / Combine.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_combinew:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU32_sisi <"combine", int_hexagon_A2_combinew>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_combine_hh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_hh <"combine", int_hexagon_A2_combine_hh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_combine_lh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_lh <"combine", int_hexagon_A2_combine_lh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_combine_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_hl <"combine", int_hexagon_A2_combine_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_combine_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_ll <"combine", int_hexagon_A2_combine_ll>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_combineii:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_s8s8 <"combine", int_hexagon_A2_combineii>;
|
|
|
|
|
|
|
|
// ALU32 / PERM / Mux.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_mux:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_qisisi <"mux", int_hexagon_C2_mux>;
|
|
|
|
|
|
|
|
// ALU32 / PERM / Shift halfword.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_aslh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_si <"aslh", int_hexagon_A2_aslh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_asrh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_si <"asrh", int_hexagon_A2_asrh>;
|
|
|
|
def SI_to_SXTHI_asrh:
|
|
|
|
si_ALU32_si <"asrh", int_hexagon_SI_to_SXTHI_asrh>;
|
|
|
|
|
|
|
|
// ALU32 / PERM / Sign/zero extend.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_sxth:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_si <"sxth", int_hexagon_A2_sxth>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_sxtb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_si <"sxtb", int_hexagon_A2_sxtb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_zxth:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_si <"zxth", int_hexagon_A2_zxth>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_zxtb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_si <"zxtb", int_hexagon_A2_zxtb>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU32/PRED *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU32 / PRED / Compare.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpeq:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sisi <"cmp.eq", int_hexagon_C2_cmpeq>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpeqi:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sis10 <"cmp.eq", int_hexagon_C2_cmpeqi>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgei:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sis8 <"cmp.ge", int_hexagon_C2_cmpgei>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgeui:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_siu8 <"cmp.geu", int_hexagon_C2_cmpgeui>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgt:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sisi <"cmp.gt", int_hexagon_C2_cmpgt>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgti:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sis10 <"cmp.gt", int_hexagon_C2_cmpgti>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgtu:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sisi <"cmp.gtu", int_hexagon_C2_cmpgtu>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgtui:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_siu9 <"cmp.gtu", int_hexagon_C2_cmpgtui>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmplt:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sisi <"cmp.lt", int_hexagon_C2_cmplt>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpltu:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU32_sisi <"cmp.ltu", int_hexagon_C2_cmpltu>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU32/VH *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU32 / VH / Vector add halfwords.
|
|
|
|
// Rd32=vadd[u]h(Rs32,Rt32:sat]
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svaddh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi <"vaddh", int_hexagon_A2_svaddh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svaddhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi_sat <"vaddh", int_hexagon_A2_svaddhs>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svadduhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi_sat <"vadduh", int_hexagon_A2_svadduhs>;
|
|
|
|
|
|
|
|
// ALU32 / VH / Vector average halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svavgh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi <"vavgh", int_hexagon_A2_svavgh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svavghs:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi_rnd <"vavgh", int_hexagon_A2_svavghs>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svnavgh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi <"vnavgh", int_hexagon_A2_svnavgh>;
|
|
|
|
|
|
|
|
// ALU32 / VH / Vector subtract halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svsubh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi <"vsubh", int_hexagon_A2_svsubh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svsubhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi_sat <"vsubh", int_hexagon_A2_svsubhs>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_svsubuhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU32_sisi_sat <"vsubuh", int_hexagon_A2_svsubuhs>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU64/ALU *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU64 / ALU / Add.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"add", int_hexagon_A2_addp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addsat:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_sat <"add", int_hexagon_A2_addsat>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Add halfword.
|
|
|
|
// Even though the definition says hl, it should be lh -
|
|
|
|
//so DON'T change the class " si_ALU64_sisi_l16_lh " it inherits.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_l16_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_lh <"add", int_hexagon_A2_addh_l16_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_l16_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_ll <"add", int_hexagon_A2_addh_l16_ll>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_l16_sat_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_sat_lh <"add", int_hexagon_A2_addh_l16_sat_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_l16_sat_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_sat_ll <"add", int_hexagon_A2_addh_l16_sat_ll>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_hh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_hh <"add", int_hexagon_A2_addh_h16_hh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_hl <"add", int_hexagon_A2_addh_h16_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_lh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_lh <"add", int_hexagon_A2_addh_h16_lh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_ll <"add", int_hexagon_A2_addh_h16_ll>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_sat_hh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_hh <"add", int_hexagon_A2_addh_h16_sat_hh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_sat_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_hl <"add", int_hexagon_A2_addh_h16_sat_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_sat_lh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_lh <"add", int_hexagon_A2_addh_h16_sat_lh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_addh_h16_sat_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_ll <"add", int_hexagon_A2_addh_h16_sat_ll>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Compare.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpeqp:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"cmp.eq", int_hexagon_C2_cmpeqp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgtp:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"cmp.gt", int_hexagon_C2_cmpgtp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_cmpgtup:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"cmp.gtu", int_hexagon_C2_cmpgtup>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Logical operations.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_andp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"and", int_hexagon_A2_andp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_orp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"or", int_hexagon_A2_orp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_xorp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"xor", int_hexagon_A2_xorp>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Maximum.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_max:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi <"max", int_hexagon_A2_max>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_maxu:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi <"maxu", int_hexagon_A2_maxu>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Minimum.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_min:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi <"min", int_hexagon_A2_min>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_minu:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi <"minu", int_hexagon_A2_minu>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Subtract.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"sub", int_hexagon_A2_subp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subsat:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_sat <"sub", int_hexagon_A2_subsat>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Subtract halfword.
|
|
|
|
// Even though the definition says hl, it should be lh -
|
|
|
|
//so DON'T change the class " si_ALU64_sisi_l16_lh " it inherits.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_l16_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_lh <"sub", int_hexagon_A2_subh_l16_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_l16_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_ll <"sub", int_hexagon_A2_subh_l16_ll>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_l16_sat_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_sat_lh <"sub", int_hexagon_A2_subh_l16_sat_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_l16_sat_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_l16_sat_ll <"sub", int_hexagon_A2_subh_l16_sat_ll>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_hh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_hh <"sub", int_hexagon_A2_subh_h16_hh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_hl <"sub", int_hexagon_A2_subh_h16_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_lh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_lh <"sub", int_hexagon_A2_subh_h16_lh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_ll <"sub", int_hexagon_A2_subh_h16_ll>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_sat_hh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_hh <"sub", int_hexagon_A2_subh_h16_sat_hh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_sat_hl:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_hl <"sub", int_hexagon_A2_subh_h16_sat_hl>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_sat_lh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_lh <"sub", int_hexagon_A2_subh_h16_sat_lh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_subh_h16_sat_ll:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_sisi_h16_sat_ll <"sub", int_hexagon_A2_subh_h16_sat_ll>;
|
|
|
|
|
|
|
|
// ALU64 / ALU / Transfer register.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_tfrp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_di <"", int_hexagon_A2_tfrp>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU64/BIT *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU64 / BIT / Masked parity.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_parityp:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_ALU64_didi <"parity", int_hexagon_S2_parityp>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU64/PERM *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU64 / PERM / Vector pack high and low halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_packhl:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_sisi <"packhl", int_hexagon_S2_packhl>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU64/VB *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU64 / VB / Vector add unsigned bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vaddub:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vaddub", int_hexagon_A2_vaddub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vaddubs:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vaddub", int_hexagon_A2_vaddubs>;
|
|
|
|
|
|
|
|
// ALU64 / VB / Vector average unsigned bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavgub:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vavgub", int_hexagon_A2_vavgub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavgubr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_rnd <"vavgub", int_hexagon_A2_vavgubr>;
|
|
|
|
|
|
|
|
// ALU64 / VB / Vector compare unsigned bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmpbeq:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmpb.eq", int_hexagon_A2_vcmpbeq>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmpbgtu:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmpb.gtu",int_hexagon_A2_vcmpbgtu>;
|
|
|
|
|
|
|
|
// ALU64 / VB / Vector maximum/minimum unsigned bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vmaxub:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vmaxub", int_hexagon_A2_vmaxub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vminub:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vminub", int_hexagon_A2_vminub>;
|
|
|
|
|
|
|
|
// ALU64 / VB / Vector subtract unsigned bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vsubub:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vsubub", int_hexagon_A2_vsubub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vsububs:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vsubub", int_hexagon_A2_vsububs>;
|
|
|
|
|
|
|
|
// ALU64 / VB / Vector mux.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_vmux:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_qididi <"vmux", int_hexagon_C2_vmux>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU64/VH *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU64 / VH / Vector add halfwords.
|
|
|
|
// Rdd64=vadd[u]h(Rss64,Rtt64:sat]
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vaddh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vaddh", int_hexagon_A2_vaddh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vaddhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vaddh", int_hexagon_A2_vaddhs>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vadduhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vadduh", int_hexagon_A2_vadduhs>;
|
|
|
|
|
|
|
|
// ALU64 / VH / Vector average halfwords.
|
|
|
|
// Rdd64=v[n]avg[u]h(Rss64,Rtt64:rnd/:crnd][:sat]
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavgh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vavgh", int_hexagon_A2_vavgh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavghcr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_crnd <"vavgh", int_hexagon_A2_vavghcr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavghr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_rnd <"vavgh", int_hexagon_A2_vavghr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavguh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vavguh", int_hexagon_A2_vavguh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavguhr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_rnd <"vavguh", int_hexagon_A2_vavguhr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vnavgh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vnavgh", int_hexagon_A2_vnavgh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vnavghcr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_crnd_sat <"vnavgh", int_hexagon_A2_vnavghcr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vnavghr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_rnd_sat <"vnavgh", int_hexagon_A2_vnavghr>;
|
|
|
|
|
|
|
|
// ALU64 / VH / Vector compare halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmpheq:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmph.eq", int_hexagon_A2_vcmpheq>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmphgt:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmph.gt", int_hexagon_A2_vcmphgt>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmphgtu:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmph.gtu",int_hexagon_A2_vcmphgtu>;
|
|
|
|
|
|
|
|
// ALU64 / VH / Vector maximum halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vmaxh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vmaxh", int_hexagon_A2_vmaxh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vmaxuh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vmaxuh", int_hexagon_A2_vmaxuh>;
|
|
|
|
|
|
|
|
// ALU64 / VH / Vector minimum halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vminh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vminh", int_hexagon_A2_vminh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vminuh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vminuh", int_hexagon_A2_vminuh>;
|
|
|
|
|
|
|
|
// ALU64 / VH / Vector subtract halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vsubh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vsubh", int_hexagon_A2_vsubh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vsubhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vsubh", int_hexagon_A2_vsubhs>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vsubuhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vsubuh", int_hexagon_A2_vsubuhs>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* ALU64/VW *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// ALU64 / VW / Vector add words.
|
|
|
|
// Rdd32=vaddw(Rss32,Rtt32)[:sat]
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vaddw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vaddw", int_hexagon_A2_vaddw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vaddws:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vaddw", int_hexagon_A2_vaddws>;
|
|
|
|
|
|
|
|
// ALU64 / VW / Vector average words.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavguw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vavguw", int_hexagon_A2_vavguw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavguwr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_rnd <"vavguw", int_hexagon_A2_vavguwr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavgw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vavgw", int_hexagon_A2_vavgw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavgwcr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_crnd <"vavgw", int_hexagon_A2_vavgwcr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vavgwr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_rnd <"vavgw", int_hexagon_A2_vavgwr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vnavgw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vnavgw", int_hexagon_A2_vnavgw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vnavgwcr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_crnd_sat <"vnavgw", int_hexagon_A2_vnavgwcr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vnavgwr:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_rnd_sat <"vnavgw", int_hexagon_A2_vnavgwr>;
|
|
|
|
|
|
|
|
// ALU64 / VW / Vector compare words.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmpweq:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmpw.eq", int_hexagon_A2_vcmpweq>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmpwgt:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmpw.gt", int_hexagon_A2_vcmpwgt>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vcmpwgtu:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_ALU64_didi <"vcmpw.gtu",int_hexagon_A2_vcmpwgtu>;
|
|
|
|
|
|
|
|
// ALU64 / VW / Vector maximum words.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vmaxw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vmaxw", int_hexagon_A2_vmaxw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vmaxuw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vmaxuw", int_hexagon_A2_vmaxuw>;
|
|
|
|
|
|
|
|
// ALU64 / VW / Vector minimum words.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vminw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vminw", int_hexagon_A2_vminw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vminuw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vminuw", int_hexagon_A2_vminuw>;
|
|
|
|
|
|
|
|
// ALU64 / VW / Vector subtract words.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vsubw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi <"vsubw", int_hexagon_A2_vsubw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vsubws:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_ALU64_didi_sat <"vsubw", int_hexagon_A2_vsubws>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* CR *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// CR / Logical reductions on predicates.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_all8:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qi <"all8", int_hexagon_C2_all8>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_any8:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qi <"any8", int_hexagon_C2_any8>;
|
|
|
|
|
|
|
|
// CR / Logical operations on predicates.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_pxfer_map:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qi_pxfer <"", int_hexagon_C2_pxfer_map>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qiqi <"and", int_hexagon_C2_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_andn:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qiqi_neg <"and", int_hexagon_C2_andn>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_not:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qi <"not", int_hexagon_C2_not>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qiqi <"or", int_hexagon_C2_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_orn:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qiqi_neg <"or", int_hexagon_C2_orn>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_xor:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_qiqi <"xor", int_hexagon_C2_xor>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* MTYPE/ALU *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// MTYPE / ALU / Add and accumulate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_acci:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisisi_acc <"add", int_hexagon_M2_acci>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_accii:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisis8_acc <"add", int_hexagon_M2_accii>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_nacci:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisisi_nac <"add", int_hexagon_M2_nacci>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_naccii:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisis8_nac <"add", int_hexagon_M2_naccii>;
|
|
|
|
|
|
|
|
// MTYPE / ALU / Subtract and accumulate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_subacc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisisi_acc <"sub", int_hexagon_M2_subacc>;
|
|
|
|
|
|
|
|
// MTYPE / ALU / Vector absolute difference.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vabsdiffh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi <"vabsdiffh",int_hexagon_M2_vabsdiffh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vabsdiffw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi <"vabsdiffw",int_hexagon_M2_vabsdiffw>;
|
|
|
|
|
|
|
|
// MTYPE / ALU / XOR and xor with destination.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_xor_xacc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisisi_xacc <"xor", int_hexagon_M2_xor_xacc>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* MTYPE/COMPLEX *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// MTYPE / COMPLEX / Complex multiply.
|
|
|
|
// Rdd[-+]=cmpy(Rs, Rt:<<1]:sat
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpys_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi_s1_sat <"cmpy", int_hexagon_M2_cmpys_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpys_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi_sat <"cmpy", int_hexagon_M2_cmpys_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpysc_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi_s1_sat_conj <"cmpy", int_hexagon_M2_cmpysc_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpysc_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi_sat_conj <"cmpy", int_hexagon_M2_cmpysc_s0>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmacs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc_s1_sat <"cmpy", int_hexagon_M2_cmacs_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmacs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc_sat <"cmpy", int_hexagon_M2_cmacs_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmacsc_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc_s1_sat_conj <"cmpy", int_hexagon_M2_cmacsc_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmacsc_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc_sat_conj <"cmpy", int_hexagon_M2_cmacsc_s0>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cnacs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_nac_s1_sat <"cmpy", int_hexagon_M2_cnacs_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cnacs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_nac_sat <"cmpy", int_hexagon_M2_cnacs_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cnacsc_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_nac_s1_sat_conj <"cmpy", int_hexagon_M2_cnacsc_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cnacsc_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_nac_sat_conj <"cmpy", int_hexagon_M2_cnacsc_s0>;
|
|
|
|
|
|
|
|
// MTYPE / COMPLEX / Complex multiply real or imaginary.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpyr_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi <"cmpyr", int_hexagon_M2_cmpyr_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmacr_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc <"cmpyr", int_hexagon_M2_cmacr_s0>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpyi_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi <"cmpyi", int_hexagon_M2_cmpyi_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmaci_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc <"cmpyi", int_hexagon_M2_cmaci_s0>;
|
|
|
|
|
|
|
|
// MTYPE / COMPLEX / Complex multiply with round and pack.
|
|
|
|
// Rxx32+=cmpy(Rs32,[*]Rt32:<<1]:rnd:sat
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpyrs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_rnd_sat <"cmpy", int_hexagon_M2_cmpyrs_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpyrs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_s1_rnd_sat <"cmpy", int_hexagon_M2_cmpyrs_s1>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpyrsc_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_rnd_sat_conj <"cmpy", int_hexagon_M2_cmpyrsc_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_cmpyrsc_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_s1_rnd_sat_conj <"cmpy", int_hexagon_M2_cmpyrsc_s1>;
|
|
|
|
|
|
|
|
//MTYPE / COMPLEX / Vector complex multiply real or imaginary.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vcmpy_s0_sat_i:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vcmpyi", int_hexagon_M2_vcmpy_s0_sat_i>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vcmpy_s1_sat_i:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vcmpyi", int_hexagon_M2_vcmpy_s1_sat_i>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vcmpy_s0_sat_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vcmpyr", int_hexagon_M2_vcmpy_s0_sat_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vcmpy_s1_sat_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vcmpyr", int_hexagon_M2_vcmpy_s1_sat_r>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vcmac_s0_sat_i:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vcmpyi", int_hexagon_M2_vcmac_s0_sat_i>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vcmac_s0_sat_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vcmpyr", int_hexagon_M2_vcmac_s0_sat_r>;
|
|
|
|
|
|
|
|
//MTYPE / COMPLEX / Vector reduce complex multiply real or imaginary.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmpyi_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi <"vrcmpyi", int_hexagon_M2_vrcmpyi_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmpyr_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi <"vrcmpyr", int_hexagon_M2_vrcmpyr_s0>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmpyi_s0c:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_conj <"vrcmpyi", int_hexagon_M2_vrcmpyi_s0c>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmpyr_s0c:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_conj <"vrcmpyr", int_hexagon_M2_vrcmpyr_s0c>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmaci_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc <"vrcmpyi", int_hexagon_M2_vrcmaci_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmacr_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc <"vrcmpyr", int_hexagon_M2_vrcmacr_s0>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmaci_s0c:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_conj <"vrcmpyi", int_hexagon_M2_vrcmaci_s0c>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrcmacr_s0c:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_conj <"vrcmpyr", int_hexagon_M2_vrcmacr_s0c>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* MTYPE/MPYH *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// MTYPE / MPYH / Multiply and use lower result.
|
2012-05-12 03:39:13 +08:00
|
|
|
//def HEXAGON_M2_mpysmi:
|
|
|
|
//FIXME: Hexagon_M2_mpysmi should really by of the type si_MInst_sim9,
|
|
|
|
// not si_MInst_sis9 - but for now, we will use s9.
|
|
|
|
// def Hexagon_M2_mpysmi:
|
2011-12-13 05:14:40 +08:00
|
|
|
// si_MInst_sim9 <"mpyi", int_hexagon_M2_mpysmi>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_M2_mpysmi:
|
|
|
|
si_MInst_sis9 <"mpyi", int_hexagon_M2_mpysmi>;
|
|
|
|
def HEXAGON_M2_mpyi:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi <"mpyi", int_hexagon_M2_mpyi>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mpyui:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi <"mpyui", int_hexagon_M2_mpyui>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_macsip:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisiu8_acc <"mpyi", int_hexagon_M2_macsip>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_maci:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisisi_acc <"mpyi", int_hexagon_M2_maci>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_macsin:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisiu8_nac <"mpyi", int_hexagon_M2_macsin>;
|
|
|
|
|
|
|
|
// MTYPE / MPYH / Multiply word by half (32x16).
|
|
|
|
//Rdd[+]=vmpywoh(Rss,Rtt)[:<<1][:rnd][:sat]
|
|
|
|
//Rdd[+]=vmpyweh(Rss,Rtt)[:<<1][:rnd][:sat]
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyl_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_rnd_sat <"vmpyweh", int_hexagon_M2_mmpyl_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyl_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vmpyweh", int_hexagon_M2_mmpyl_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyl_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_rnd_sat <"vmpyweh", int_hexagon_M2_mmpyl_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyl_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vmpyweh", int_hexagon_M2_mmpyl_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyh_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_rnd_sat <"vmpywoh", int_hexagon_M2_mmpyh_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyh_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vmpywoh", int_hexagon_M2_mmpyh_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyh_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_rnd_sat <"vmpywoh", int_hexagon_M2_mmpyh_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyh_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vmpywoh", int_hexagon_M2_mmpyh_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacls_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_rnd_sat <"vmpyweh", int_hexagon_M2_mmacls_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacls_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_sat <"vmpyweh", int_hexagon_M2_mmacls_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacls_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_rnd_sat <"vmpyweh", int_hexagon_M2_mmacls_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacls_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vmpyweh", int_hexagon_M2_mmacls_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmachs_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_rnd_sat <"vmpywoh", int_hexagon_M2_mmachs_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmachs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_sat <"vmpywoh", int_hexagon_M2_mmachs_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmachs_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_rnd_sat <"vmpywoh", int_hexagon_M2_mmachs_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmachs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vmpywoh", int_hexagon_M2_mmachs_s0>;
|
|
|
|
|
|
|
|
// MTYPE / MPYH / Multiply word by unsigned half (32x16).
|
|
|
|
//Rdd[+]=vmpywouh(Rss,Rtt)[:<<1][:rnd][:sat]
|
|
|
|
//Rdd[+]=vmpyweuh(Rss,Rtt)[:<<1][:rnd][:sat]
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyul_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_rnd_sat <"vmpyweuh", int_hexagon_M2_mmpyul_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyul_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vmpyweuh", int_hexagon_M2_mmpyul_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyul_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_rnd_sat <"vmpyweuh", int_hexagon_M2_mmpyul_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyul_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vmpyweuh", int_hexagon_M2_mmpyul_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyuh_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_rnd_sat <"vmpywouh", int_hexagon_M2_mmpyuh_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyuh_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vmpywouh", int_hexagon_M2_mmpyuh_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyuh_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_rnd_sat <"vmpywouh", int_hexagon_M2_mmpyuh_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmpyuh_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vmpywouh", int_hexagon_M2_mmpyuh_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmaculs_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_rnd_sat <"vmpyweuh", int_hexagon_M2_mmaculs_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmaculs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_sat <"vmpyweuh", int_hexagon_M2_mmaculs_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmaculs_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_rnd_sat <"vmpyweuh", int_hexagon_M2_mmaculs_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmaculs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vmpyweuh", int_hexagon_M2_mmaculs_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacuhs_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_rnd_sat <"vmpywouh", int_hexagon_M2_mmacuhs_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacuhs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_sat <"vmpywouh", int_hexagon_M2_mmacuhs_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacuhs_rs0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_rnd_sat <"vmpywouh", int_hexagon_M2_mmacuhs_rs0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mmacuhs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vmpywouh", int_hexagon_M2_mmacuhs_s0>;
|
|
|
|
|
|
|
|
// MTYPE / MPYH / Multiply and use upper result.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_hmmpyh_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_h_s1_rnd_sat <"mpy", int_hexagon_M2_hmmpyh_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_hmmpyl_rs1:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_l_s1_rnd_sat <"mpy", int_hexagon_M2_hmmpyl_rs1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mpy_up:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi <"mpy", int_hexagon_M2_mpy_up>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_dpmpyss_rnd_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_rnd <"mpy", int_hexagon_M2_dpmpyss_rnd_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_mpyu_up:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi <"mpyu", int_hexagon_M2_mpyu_up>;
|
|
|
|
|
|
|
|
// MTYPE / MPYH / Multiply and use full result.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_dpmpyuu_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi <"mpyu", int_hexagon_M2_dpmpyuu_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_dpmpyuu_acc_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc <"mpyu", int_hexagon_M2_dpmpyuu_acc_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_dpmpyuu_nac_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_nac <"mpyu", int_hexagon_M2_dpmpyuu_nac_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_dpmpyss_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi <"mpy", int_hexagon_M2_dpmpyss_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_dpmpyss_acc_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc <"mpy", int_hexagon_M2_dpmpyss_acc_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_dpmpyss_nac_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_nac <"mpy", int_hexagon_M2_dpmpyss_nac_s0>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* MTYPE/VB *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// MTYPE / VB / Vector reduce add unsigned bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vraddub:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi <"vraddub", int_hexagon_A2_vraddub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vraddub_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc <"vraddub", int_hexagon_A2_vraddub_acc>;
|
|
|
|
|
|
|
|
// MTYPE / VB / Vector sum of absolute differences unsigned bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vrsadub:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi <"vrsadub", int_hexagon_A2_vrsadub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vrsadub_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc <"vrsadub", int_hexagon_A2_vrsadub_acc>;
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* MTYPE/VH *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// MTYPE / VH / Vector dual multiply.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vdmpys_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vdmpy", int_hexagon_M2_vdmpys_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vdmpys_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vdmpy", int_hexagon_M2_vdmpys_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vdmacs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_sat <"vdmpy", int_hexagon_M2_vdmacs_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vdmacs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vdmpy", int_hexagon_M2_vdmacs_s0>;
|
|
|
|
|
|
|
|
// MTYPE / VH / Vector dual multiply with round and pack.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vdmpyrs_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_didi_rnd_sat <"vdmpy", int_hexagon_M2_vdmpyrs_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vdmpyrs_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_didi_s1_rnd_sat <"vdmpy", int_hexagon_M2_vdmpyrs_s1>;
|
|
|
|
|
|
|
|
// MTYPE / VH / Vector multiply even halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmpy2es_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_s1_sat <"vmpyeh", int_hexagon_M2_vmpy2es_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmpy2es_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi_sat <"vmpyeh", int_hexagon_M2_vmpy2es_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmac2es:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc <"vmpyeh", int_hexagon_M2_vmac2es>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmac2es_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_s1_sat <"vmpyeh", int_hexagon_M2_vmac2es_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmac2es_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc_sat <"vmpyeh", int_hexagon_M2_vmac2es_s0>;
|
|
|
|
|
|
|
|
// MTYPE / VH / Vector multiply halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmpy2s_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi_sat <"vmpyh", int_hexagon_M2_vmpy2s_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmpy2s_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_sisi_s1_sat <"vmpyh", int_hexagon_M2_vmpy2s_s1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmac2:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc <"vmpyh", int_hexagon_M2_vmac2>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmac2s_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc_sat <"vmpyh", int_hexagon_M2_vmac2s_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmac2s_s1:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_disisi_acc_s1_sat <"vmpyh", int_hexagon_M2_vmac2s_s1>;
|
|
|
|
|
|
|
|
// MTYPE / VH / Vector multiply halfwords with round and pack.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmpy2s_s0pack:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_rnd_sat <"vmpyh", int_hexagon_M2_vmpy2s_s0pack>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vmpy2s_s1pack:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisi_s1_rnd_sat <"vmpyh", int_hexagon_M2_vmpy2s_s1pack>;
|
|
|
|
|
|
|
|
// MTYPE / VH / Vector reduce multiply halfwords.
|
|
|
|
// Rxx32+=vrmpyh(Rss32,Rtt32)
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrmpy_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_didi <"vrmpyh", int_hexagon_M2_vrmpy_s0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_M2_vrmac_s0:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_MInst_dididi_acc <"vrmpyh", int_hexagon_M2_vrmac_s0>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/ALU *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / ALU / Absolute value.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_abs:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"abs", int_hexagon_A2_abs>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_absp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"abs", int_hexagon_A2_absp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_abssat:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si_sat <"abs", int_hexagon_A2_abssat>;
|
|
|
|
|
|
|
|
// STYPE / ALU / Logical Not.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_notp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"not", int_hexagon_A2_notp>;
|
|
|
|
|
|
|
|
// STYPE / ALU / Sign extend word to doubleword.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_sxtw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_si <"sxtw", int_hexagon_A2_sxtw>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/BIT *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / BIT / Count leading.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_cl0:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"cl0", int_hexagon_S2_cl0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_cl0p:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"cl0", int_hexagon_S2_cl0p>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_cl1:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"cl1", int_hexagon_S2_cl1>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_cl1p:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"cl1", int_hexagon_S2_cl1p>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_clb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"clb", int_hexagon_S2_clb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_clbp:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"clb", int_hexagon_S2_clbp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_clbnorm:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"normamt", int_hexagon_S2_clbnorm>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Count trailing.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_ct0:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"ct0", int_hexagon_S2_ct0>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_ct1:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"ct1", int_hexagon_S2_ct1>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Compare bit mask.
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_C2_bitsclr:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_sisi <"bitsclr", int_hexagon_C2_bitsclr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_C2_bitsclri:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_siu6 <"bitsclr", int_hexagon_C2_bitsclri>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_C2_bitsset:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_sisi <"bitsset", int_hexagon_C2_bitsset>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Extract unsigned.
|
|
|
|
// Rd[d][32/64]=extractu(Rs[s],Rt[t],[imm])
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_extractu:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5u5 <"extractu",int_hexagon_S2_extractu>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_extractu_rp:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sidi <"extractu",int_hexagon_S2_extractu_rp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_extractup:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_diu6u6 <"extractu",int_hexagon_S2_extractup>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_extractup_rp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"extractu",int_hexagon_S2_extractup_rp>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Insert bitfield.
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_insert:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5u5 <"insert", int_hexagon_S2_insert>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_insert_rp:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisidi <"insert", int_hexagon_S2_insert_rp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_insertp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6u6 <"insert", int_hexagon_S2_insertp>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_insertp_rp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_dididi <"insert", int_hexagon_S2_insertp_rp>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Innterleave/deinterleave.
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_interleave:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"interleave", int_hexagon_S2_interleave>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_deinterleave:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"deinterleave", int_hexagon_S2_deinterleave>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Linear feedback-shift Iteration.
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_lfsp:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"lfs", int_hexagon_S2_lfsp>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Bit reverse.
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_brev:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"brev", int_hexagon_S2_brev>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Set/Clear/Toggle Bit.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_setbit_i:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5 <"setbit", int_hexagon_S2_setbit_i>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_togglebit_i:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5 <"togglebit", int_hexagon_S2_togglebit_i>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_clrbit_i:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5 <"clrbit", int_hexagon_S2_clrbit_i>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_setbit_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi <"setbit", int_hexagon_S2_setbit_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_togglebit_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi <"togglebit", int_hexagon_S2_togglebit_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_clrbit_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi <"clrbit", int_hexagon_S2_clrbit_r>;
|
|
|
|
|
|
|
|
// STYPE / BIT / Test Bit.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_tstbit_i:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_siu5 <"tstbit", int_hexagon_S2_tstbit_i>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_tstbit_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_sisi <"tstbit", int_hexagon_S2_tstbit_r>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/COMPLEX *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / COMPLEX / Vector Complex conjugate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vconj:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di_sat <"vconj", int_hexagon_A2_vconj>;
|
|
|
|
|
|
|
|
// STYPE / COMPLEX / Vector Complex rotate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vcrotate:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vcrotate",int_hexagon_S2_vcrotate>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/PERM *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / PERM / Saturate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_sat:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"sat", int_hexagon_A2_sat>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_satb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"satb", int_hexagon_A2_satb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_sath:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"sath", int_hexagon_A2_sath>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_satub:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"satub", int_hexagon_A2_satub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_satuh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"satuh", int_hexagon_A2_satuh>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Swizzle bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_swiz:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"swiz", int_hexagon_A2_swiz>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector align.
|
|
|
|
// Need custom lowering
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_valignib:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu3 <"valignb", int_hexagon_S2_valignib>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_valignrb:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiqi <"valignb", int_hexagon_S2_valignrb>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector round and pack.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vrndpackwh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"vrndwh", int_hexagon_S2_vrndpackwh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vrndpackwhs:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di_sat <"vrndwh", int_hexagon_S2_vrndpackwhs>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector saturate and pack.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_svsathb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"vsathb", int_hexagon_S2_svsathb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsathb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"vsathb", int_hexagon_S2_vsathb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_svsathub:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"vsathub", int_hexagon_S2_svsathub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsathub:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"vsathub", int_hexagon_S2_vsathub>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsatwh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"vsatwh", int_hexagon_S2_vsatwh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsatwuh:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"vsatwuh", int_hexagon_S2_vsatwuh>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector saturate without pack.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsathb_nopack:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"vsathb", int_hexagon_S2_vsathb_nopack>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsathub_nopack:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"vsathub", int_hexagon_S2_vsathub_nopack>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsatwh_nopack:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"vsatwh", int_hexagon_S2_vsatwh_nopack>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsatwuh_nopack:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"vsatwuh", int_hexagon_S2_vsatwuh_nopack>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector shuffle.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_shuffeb:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"shuffeb", int_hexagon_S2_shuffeb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_shuffeh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"shuffeh", int_hexagon_S2_shuffeh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_shuffob:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"shuffob", int_hexagon_S2_shuffob>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_shuffoh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"shuffoh", int_hexagon_S2_shuffoh>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector splat bytes.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsplatrb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_si <"vsplatb", int_hexagon_S2_vsplatrb>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector splat halfwords.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsplatrh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_si <"vsplath", int_hexagon_S2_vsplatrh>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Vector splice.
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_vsplicerb:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiqi <"vspliceb",int_hexagon_S2_vsplicerb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_vspliceib:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu3 <"vspliceb",int_hexagon_S2_vspliceib>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Sign extend.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsxtbh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_si <"vsxtbh", int_hexagon_S2_vsxtbh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vsxthw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_si <"vsxthw", int_hexagon_S2_vsxthw>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Truncate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vtrunehb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"vtrunehb",int_hexagon_S2_vtrunehb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vtrunohb:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_di <"vtrunohb",int_hexagon_S2_vtrunohb>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vtrunewh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"vtrunewh",int_hexagon_S2_vtrunewh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vtrunowh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didi <"vtrunowh",int_hexagon_S2_vtrunowh>;
|
|
|
|
|
|
|
|
// STYPE / PERM / Zero extend.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vzxtbh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_si <"vzxtbh", int_hexagon_S2_vzxtbh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_vzxthw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_si <"vzxthw", int_hexagon_S2_vzxthw>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/PRED *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / PRED / Mask generate from predicate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_mask:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_qi <"mask", int_hexagon_C2_mask>;
|
|
|
|
|
|
|
|
// STYPE / PRED / Predicate transfer.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_tfrpr:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_qi <"", int_hexagon_C2_tfrpr>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_tfrrp:
|
2011-12-13 05:14:40 +08:00
|
|
|
qi_SInst_si <"", int_hexagon_C2_tfrrp>;
|
|
|
|
|
|
|
|
// STYPE / PRED / Viterbi pack even and odd predicate bits.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_C2_vitpack:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_qiqi <"vitpack",int_hexagon_C2_vitpack>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/SHIFT *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by immediate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5 <"asl", int_hexagon_S2_asl_i_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5 <"asr", int_hexagon_S2_asr_i_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5 <"lsr", int_hexagon_S2_lsr_i_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_p:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_diu6 <"asl", int_hexagon_S2_asl_i_p>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_p:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_diu6 <"asr", int_hexagon_S2_asr_i_p>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_p:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_diu6 <"lsr", int_hexagon_S2_lsr_i_p>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by immediate and accumulate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_r_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_acc <"asl", int_hexagon_S2_asl_i_r_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_r_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_acc <"asr", int_hexagon_S2_asr_i_r_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_r_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_acc <"lsr", int_hexagon_S2_lsr_i_r_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_r_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_nac <"asl", int_hexagon_S2_asl_i_r_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_r_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_nac <"asr", int_hexagon_S2_asr_i_r_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_r_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_nac <"lsr", int_hexagon_S2_lsr_i_r_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_p_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_acc <"asl", int_hexagon_S2_asl_i_p_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_p_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_acc <"asr", int_hexagon_S2_asr_i_p_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_p_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_acc <"lsr", int_hexagon_S2_lsr_i_p_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_p_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_nac <"asl", int_hexagon_S2_asl_i_p_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_p_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_nac <"asr", int_hexagon_S2_asr_i_p_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_p_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_nac <"lsr", int_hexagon_S2_lsr_i_p_nac>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by immediate and add.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_addasl_rrri:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu3 <"addasl", int_hexagon_S2_addasl_rrri>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by immediate and logical.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_r_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_and <"asl", int_hexagon_S2_asl_i_r_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_r_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_and <"asr", int_hexagon_S2_asr_i_r_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_r_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_and <"lsr", int_hexagon_S2_lsr_i_r_and>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_r_xacc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_xor <"asl", int_hexagon_S2_asl_i_r_xacc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_r_xacc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_xor <"lsr", int_hexagon_S2_lsr_i_r_xacc>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_r_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_or <"asl", int_hexagon_S2_asl_i_r_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_r_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_or <"asr", int_hexagon_S2_asr_i_r_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_r_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisiu5_or <"lsr", int_hexagon_S2_lsr_i_r_or>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_p_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_and <"asl", int_hexagon_S2_asl_i_p_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_p_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_and <"asr", int_hexagon_S2_asr_i_p_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_p_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_and <"lsr", int_hexagon_S2_lsr_i_p_and>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_p_xacc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_xor <"asl", int_hexagon_S2_asl_i_p_xacc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_p_xacc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_xor <"lsr", int_hexagon_S2_lsr_i_p_xacc>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_p_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_or <"asl", int_hexagon_S2_asl_i_p_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_p_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_or <"asr", int_hexagon_S2_asr_i_p_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_p_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didiu6_or <"lsr", int_hexagon_S2_lsr_i_p_or>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift right by immediate with rounding.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_r_rnd:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5_rnd <"asr", int_hexagon_S2_asr_i_r_rnd>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_r_rnd_goodsyntax:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_siu5 <"asrrnd", int_hexagon_S2_asr_i_r_rnd_goodsyntax>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift left by immediate with saturation.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_r_sat:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi_sat <"asl", int_hexagon_S2_asl_i_r_sat>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by register.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi <"asl", int_hexagon_S2_asl_r_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi <"asr", int_hexagon_S2_asr_r_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi <"lsl", int_hexagon_S2_lsl_r_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_r:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi <"lsr", int_hexagon_S2_lsr_r_r>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_p:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"asl", int_hexagon_S2_asl_r_p>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_p:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"asr", int_hexagon_S2_asr_r_p>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_p:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"lsl", int_hexagon_S2_lsl_r_p>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_p:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"lsr", int_hexagon_S2_lsr_r_p>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by register and accumulate.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_r_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_acc <"asl", int_hexagon_S2_asl_r_r_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_r_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_acc <"asr", int_hexagon_S2_asr_r_r_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_r_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_acc <"lsl", int_hexagon_S2_lsl_r_r_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_r_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_acc <"lsr", int_hexagon_S2_lsr_r_r_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_p_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_acc <"asl", int_hexagon_S2_asl_r_p_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_p_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_acc <"asr", int_hexagon_S2_asr_r_p_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_p_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_acc <"lsl", int_hexagon_S2_lsl_r_p_acc>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_p_acc:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_acc <"lsr", int_hexagon_S2_lsr_r_p_acc>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_r_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_nac <"asl", int_hexagon_S2_asl_r_r_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_r_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_nac <"asr", int_hexagon_S2_asr_r_r_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_r_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_nac <"lsl", int_hexagon_S2_lsl_r_r_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_r_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_nac <"lsr", int_hexagon_S2_lsr_r_r_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_p_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_nac <"asl", int_hexagon_S2_asl_r_p_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_p_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_nac <"asr", int_hexagon_S2_asr_r_p_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_p_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_nac <"lsl", int_hexagon_S2_lsl_r_p_nac>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_p_nac:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_nac <"lsr", int_hexagon_S2_lsr_r_p_nac>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by register and logical.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_r_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_and <"asl", int_hexagon_S2_asl_r_r_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_r_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_and <"asr", int_hexagon_S2_asr_r_r_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_r_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_and <"lsl", int_hexagon_S2_lsl_r_r_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_r_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_and <"lsr", int_hexagon_S2_lsr_r_r_and>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_r_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_or <"asl", int_hexagon_S2_asl_r_r_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_r_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_or <"asr", int_hexagon_S2_asr_r_r_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_r_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_or <"lsl", int_hexagon_S2_lsl_r_r_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_r_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisisi_or <"lsr", int_hexagon_S2_lsr_r_r_or>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_p_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_and <"asl", int_hexagon_S2_asl_r_p_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_p_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_and <"asr", int_hexagon_S2_asr_r_p_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_p_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_and <"lsl", int_hexagon_S2_lsl_r_p_and>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_p_and:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_and <"lsr", int_hexagon_S2_lsr_r_p_and>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_p_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_or <"asl", int_hexagon_S2_asl_r_p_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_p_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_or <"asr", int_hexagon_S2_asr_r_p_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_p_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_or <"lsl", int_hexagon_S2_lsl_r_p_or>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_p_or:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_didisi_or <"lsr", int_hexagon_S2_lsr_r_p_or>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Shift by register with saturation.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_r_sat:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi_sat <"asl", int_hexagon_S2_asl_r_r_sat>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_r_sat:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_sisi_sat <"asr", int_hexagon_S2_asr_r_r_sat>;
|
|
|
|
|
|
|
|
// STYPE / SHIFT / Table Index.
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_tableidxb_goodsyntax:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisiu4u5 <"tableidxb",int_hexagon_S2_tableidxb_goodsyntax>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_tableidxd_goodsyntax:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisiu4u5 <"tableidxd",int_hexagon_S2_tableidxd_goodsyntax>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_tableidxh_goodsyntax:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisiu4u5 <"tableidxh",int_hexagon_S2_tableidxh_goodsyntax>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def Hexagon_S2_tableidxw_goodsyntax:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_MInst_sisiu4u5 <"tableidxw",int_hexagon_S2_tableidxw_goodsyntax>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/VH *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / VH / Vector absolute value halfwords.
|
|
|
|
// Rdd64=vabsh(Rss64)
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vabsh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"vabsh", int_hexagon_A2_vabsh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vabshsat:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di_sat <"vabsh", int_hexagon_A2_vabshsat>;
|
|
|
|
|
|
|
|
// STYPE / VH / Vector shift halfwords by immediate.
|
|
|
|
// Rdd64=v[asl/asr/lsr]h(Rss64,Rt32)
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_vh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vaslh", int_hexagon_S2_asl_i_vh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_vh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vasrh", int_hexagon_S2_asr_i_vh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_vh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vlsrh", int_hexagon_S2_lsr_i_vh>;
|
|
|
|
|
|
|
|
// STYPE / VH / Vector shift halfwords by register.
|
|
|
|
// Rdd64=v[asl/asr/lsl/lsr]w(Rss64,Rt32)
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_vh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vaslh", int_hexagon_S2_asl_r_vh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_vh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vasrh", int_hexagon_S2_asr_r_vh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_vh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vlslh", int_hexagon_S2_lsl_r_vh>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_vh:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vlsrh", int_hexagon_S2_lsr_r_vh>;
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* STYPE/VW *
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
// STYPE / VW / Vector absolute value words.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vabsw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di <"vabsw", int_hexagon_A2_vabsw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_A2_vabswsat:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_di_sat <"vabsw", int_hexagon_A2_vabswsat>;
|
|
|
|
|
|
|
|
// STYPE / VW / Vector shift words by immediate.
|
|
|
|
// Rdd64=v[asl/vsl]w(Rss64,Rt32)
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_i_vw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vaslw", int_hexagon_S2_asl_i_vw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_vw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vasrw", int_hexagon_S2_asr_i_vw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_i_vw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vlsrw", int_hexagon_S2_lsr_i_vw>;
|
|
|
|
|
|
|
|
// STYPE / VW / Vector shift words by register.
|
|
|
|
// Rdd64=v[asl/vsl]w(Rss64,Rt32)
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asl_r_vw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vaslw", int_hexagon_S2_asl_r_vw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_vw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vasrw", int_hexagon_S2_asr_r_vw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsl_r_vw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vlslw", int_hexagon_S2_lsl_r_vw>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_lsr_r_vw:
|
2011-12-13 05:14:40 +08:00
|
|
|
di_SInst_disi <"vlsrw", int_hexagon_S2_lsr_r_vw>;
|
|
|
|
|
|
|
|
// STYPE / VW / Vector shift words with truncate and pack.
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_r_svw_trun:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_disi <"vasrw", int_hexagon_S2_asr_r_svw_trun>;
|
2012-05-12 03:39:13 +08:00
|
|
|
def HEXAGON_S2_asr_i_svw_trun:
|
2011-12-13 05:14:40 +08:00
|
|
|
si_SInst_diu5 <"vasrw", int_hexagon_S2_asr_i_svw_trun>;
|
|
|
|
|
2012-05-12 03:39:13 +08:00
|
|
|
// LD / Circular loads.
|
|
|
|
def HEXAGON_circ_ldd:
|
|
|
|
di_LDInstPI_diu4 <"circ_ldd", int_hexagon_circ_ldd>;
|
|
|
|
|
2011-12-13 05:14:40 +08:00
|
|
|
include "HexagonIntrinsicsV3.td"
|
|
|
|
include "HexagonIntrinsicsV4.td"
|
2012-05-12 03:39:13 +08:00
|
|
|
include "HexagonIntrinsicsV5.td"
|