2013-02-21 23:16:44 +08:00
|
|
|
//===-- SIInstrInfo.td - SI Instruction Infos -------------*- tablegen -*--===//
|
2012-12-12 05:25:42 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// SI DAG Nodes
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2013-02-08 03:39:40 +08:00
|
|
|
// SMRD takes a 64bit memory address and can only add an 32bit offset
|
|
|
|
def SIadd64bit32bit : SDNode<"ISD::ADD",
|
|
|
|
SDTypeProfile<1, 2, [SDTCisSameAs<0, 1>, SDTCisVT<0, i64>, SDTCisVT<2, i32>]>
|
|
|
|
>;
|
|
|
|
|
2013-02-08 03:39:38 +08:00
|
|
|
// Transformation function, extract the lower 32bit of a 64bit immediate
|
|
|
|
def LO32 : SDNodeXForm<imm, [{
|
|
|
|
return CurDAG->getTargetConstant(N->getZExtValue() & 0xffffffff, MVT::i32);
|
|
|
|
}]>;
|
|
|
|
|
|
|
|
// Transformation function, extract the upper 32bit of a 64bit immediate
|
|
|
|
def HI32 : SDNodeXForm<imm, [{
|
|
|
|
return CurDAG->getTargetConstant(N->getZExtValue() >> 32, MVT::i32);
|
|
|
|
}]>;
|
|
|
|
|
2013-02-08 03:39:40 +08:00
|
|
|
def IMM8bitDWORD : ImmLeaf <
|
|
|
|
i32, [{
|
|
|
|
return (Imm & ~0x3FC) == 0;
|
|
|
|
}], SDNodeXForm<imm, [{
|
|
|
|
return CurDAG->getTargetConstant(
|
|
|
|
N->getZExtValue() >> 2, MVT::i32);
|
|
|
|
}]>
|
|
|
|
>;
|
|
|
|
|
|
|
|
def IMM12bit : ImmLeaf <
|
|
|
|
i16,
|
|
|
|
[{return isUInt<12>(Imm);}]
|
|
|
|
>;
|
|
|
|
|
2013-02-27 01:52:23 +08:00
|
|
|
class InlineImm <ValueType vt> : PatLeaf <(vt imm), [{
|
|
|
|
return ((const SITargetLowering &)TLI).analyzeImmediate(N) == 0;
|
2013-02-16 19:28:36 +08:00
|
|
|
}]>;
|
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// SI assembler operands
|
|
|
|
//===----------------------------------------------------------------------===//
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:16:49 +08:00
|
|
|
def SIOperand {
|
|
|
|
int ZERO = 0x80;
|
2013-02-27 01:52:09 +08:00
|
|
|
int VCC = 0x6A;
|
2012-12-12 05:25:42 +08:00
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
include "SIInstrFormats.td"
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// SI Instruction multiclass helpers.
|
|
|
|
//
|
|
|
|
// Instructions with _32 take 32-bit operands.
|
|
|
|
// Instructions with _64 take 64-bit operands.
|
|
|
|
//
|
|
|
|
// VOP_* instructions can use either a 32-bit or 64-bit encoding. The 32-bit
|
|
|
|
// encoding is the standard encoding, but instruction that make use of
|
|
|
|
// any of the instruction modifiers must use the 64-bit encoding.
|
|
|
|
//
|
|
|
|
// Instructions with _e32 use the 32-bit encoding.
|
|
|
|
// Instructions with _e64 use the 64-bit encoding.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Scalar classes
|
|
|
|
//===----------------------------------------------------------------------===//
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOP1_32 <bits<8> op, string opName, list<dag> pattern> : SOP1 <
|
|
|
|
op, (outs SReg_32:$dst), (ins SSrc_32:$src0),
|
|
|
|
opName#" $dst, $src0", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOP1_64 <bits<8> op, string opName, list<dag> pattern> : SOP1 <
|
|
|
|
op, (outs SReg_64:$dst), (ins SSrc_64:$src0),
|
|
|
|
opName#" $dst, $src0", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOP2_32 <bits<7> op, string opName, list<dag> pattern> : SOP2 <
|
|
|
|
op, (outs SReg_32:$dst), (ins SSrc_32:$src0, SSrc_32:$src1),
|
|
|
|
opName#" $dst, $src0, $src1", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOP2_64 <bits<7> op, string opName, list<dag> pattern> : SOP2 <
|
|
|
|
op, (outs SReg_64:$dst), (ins SSrc_64:$src0, SSrc_64:$src1),
|
|
|
|
opName#" $dst, $src0, $src1", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOPC_32 <bits<7> op, string opName, list<dag> pattern> : SOPC <
|
|
|
|
op, (outs SCCReg:$dst), (ins SSrc_32:$src0, SSrc_32:$src1),
|
|
|
|
opName#" $dst, $src0, $src1", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOPC_64 <bits<7> op, string opName, list<dag> pattern> : SOPC <
|
|
|
|
op, (outs SCCReg:$dst), (ins SSrc_64:$src0, SSrc_64:$src1),
|
|
|
|
opName#" $dst, $src0, $src1", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOPK_32 <bits<5> op, string opName, list<dag> pattern> : SOPK <
|
|
|
|
op, (outs SReg_32:$dst), (ins i16imm:$src0),
|
|
|
|
opName#" $dst, $src0", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:17:13 +08:00
|
|
|
class SOPK_64 <bits<5> op, string opName, list<dag> pattern> : SOPK <
|
|
|
|
op, (outs SReg_64:$dst), (ins i16imm:$src0),
|
|
|
|
opName#" $dst, $src0", pattern
|
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-03-18 19:33:50 +08:00
|
|
|
multiclass SMRD_Helper <bits<5> op, string asm, RegisterClass baseClass,
|
|
|
|
RegisterClass dstClass> {
|
2013-02-21 23:16:44 +08:00
|
|
|
def _IMM : SMRD <
|
|
|
|
op, 1, (outs dstClass:$dst),
|
2013-03-18 19:33:50 +08:00
|
|
|
(ins baseClass:$sbase, i32imm:$offset),
|
2013-02-21 23:17:13 +08:00
|
|
|
asm#" $dst, $sbase, $offset", []
|
2013-02-21 23:16:44 +08:00
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
def _SGPR : SMRD <
|
|
|
|
op, 0, (outs dstClass:$dst),
|
2013-03-18 19:33:50 +08:00
|
|
|
(ins baseClass:$sbase, SReg_32:$soff),
|
2013-02-21 23:17:13 +08:00
|
|
|
asm#" $dst, $sbase, $soff", []
|
2013-02-21 23:16:44 +08:00
|
|
|
>;
|
2012-12-12 05:25:42 +08:00
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Vector ALU classes
|
|
|
|
//===----------------------------------------------------------------------===//
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-27 01:52:42 +08:00
|
|
|
class VOP <string opName> {
|
|
|
|
string OpName = opName;
|
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:53 +08:00
|
|
|
multiclass VOP1_Helper <bits<8> op, RegisterClass drc, RegisterClass src,
|
|
|
|
string opName, list<dag> pattern> {
|
2013-02-21 23:16:44 +08:00
|
|
|
|
2013-02-27 01:52:42 +08:00
|
|
|
def _e32 : VOP1 <
|
2013-02-21 23:16:53 +08:00
|
|
|
op, (outs drc:$dst), (ins src:$src0),
|
|
|
|
opName#"_e32 $dst, $src0", pattern
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:16:53 +08:00
|
|
|
def _e64 : VOP3 <
|
2013-02-21 23:16:44 +08:00
|
|
|
{1, 1, op{6}, op{5}, op{4}, op{3}, op{2}, op{1}, op{0}},
|
2013-02-21 23:16:53 +08:00
|
|
|
(outs drc:$dst),
|
|
|
|
(ins src:$src0,
|
|
|
|
i32imm:$abs, i32imm:$clamp,
|
|
|
|
i32imm:$omod, i32imm:$neg),
|
|
|
|
opName#"_e64 $dst, $src0, $abs, $clamp, $omod, $neg", []
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName> {
|
2013-02-21 23:16:53 +08:00
|
|
|
let SRC1 = SIOperand.ZERO;
|
|
|
|
let SRC2 = SIOperand.ZERO;
|
|
|
|
}
|
2012-12-12 05:25:42 +08:00
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:53 +08:00
|
|
|
multiclass VOP1_32 <bits<8> op, string opName, list<dag> pattern>
|
|
|
|
: VOP1_Helper <op, VReg_32, VSrc_32, opName, pattern>;
|
|
|
|
|
|
|
|
multiclass VOP1_64 <bits<8> op, string opName, list<dag> pattern>
|
|
|
|
: VOP1_Helper <op, VReg_64, VSrc_64, opName, pattern>;
|
|
|
|
|
2013-02-21 23:16:58 +08:00
|
|
|
multiclass VOP2_Helper <bits<6> op, RegisterClass vrc, RegisterClass arc,
|
|
|
|
string opName, list<dag> pattern> {
|
|
|
|
def _e32 : VOP2 <
|
|
|
|
op, (outs vrc:$dst), (ins arc:$src0, vrc:$src1),
|
|
|
|
opName#"_e32 $dst, $src0, $src1", pattern
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:16:58 +08:00
|
|
|
def _e64 : VOP3 <
|
|
|
|
{1, 0, 0, op{5}, op{4}, op{3}, op{2}, op{1}, op{0}},
|
|
|
|
(outs vrc:$dst),
|
2013-02-27 01:52:23 +08:00
|
|
|
(ins arc:$src0, arc:$src1,
|
2013-02-21 23:16:58 +08:00
|
|
|
i32imm:$abs, i32imm:$clamp,
|
|
|
|
i32imm:$omod, i32imm:$neg),
|
|
|
|
opName#"_e64 $dst, $src0, $src1, $abs, $clamp, $omod, $neg", []
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName> {
|
2013-02-21 23:16:58 +08:00
|
|
|
let SRC2 = SIOperand.ZERO;
|
|
|
|
}
|
2012-12-12 05:25:42 +08:00
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:58 +08:00
|
|
|
multiclass VOP2_32 <bits<6> op, string opName, list<dag> pattern>
|
|
|
|
: VOP2_Helper <op, VReg_32, VSrc_32, opName, pattern>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-21 23:16:58 +08:00
|
|
|
multiclass VOP2_64 <bits<6> op, string opName, list<dag> pattern>
|
|
|
|
: VOP2_Helper <op, VReg_64, VSrc_64, opName, pattern>;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-02-27 01:52:09 +08:00
|
|
|
multiclass VOP2b_32 <bits<6> op, string opName, list<dag> pattern> {
|
|
|
|
|
|
|
|
def _e32 : VOP2 <
|
|
|
|
op, (outs VReg_32:$dst), (ins VSrc_32:$src0, VReg_32:$src1),
|
|
|
|
opName#"_e32 $dst, $src0, $src1", pattern
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName>;
|
2013-02-27 01:52:09 +08:00
|
|
|
|
|
|
|
def _e64 : VOP3b <
|
|
|
|
{1, 0, 0, op{5}, op{4}, op{3}, op{2}, op{1}, op{0}},
|
|
|
|
(outs VReg_32:$dst),
|
2013-02-27 01:52:23 +08:00
|
|
|
(ins VSrc_32:$src0, VSrc_32:$src1,
|
2013-02-27 01:52:09 +08:00
|
|
|
i32imm:$abs, i32imm:$clamp,
|
|
|
|
i32imm:$omod, i32imm:$neg),
|
|
|
|
opName#"_e64 $dst, $src0, $src1, $abs, $clamp, $omod, $neg", []
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName> {
|
2013-02-27 01:52:09 +08:00
|
|
|
let SRC2 = SIOperand.ZERO;
|
|
|
|
/* the VOP2 variant puts the carry out into VCC, the VOP3 variant
|
|
|
|
can write it into any SGPR. We currently don't use the carry out,
|
|
|
|
so for now hardcode it to VCC as well */
|
|
|
|
let SDST = SIOperand.VCC;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
multiclass VOPC_Helper <bits<8> op, RegisterClass vrc, RegisterClass arc,
|
2013-02-21 23:17:04 +08:00
|
|
|
string opName, ValueType vt, PatLeaf cond> {
|
|
|
|
|
|
|
|
def _e32 : VOPC <
|
|
|
|
op, (ins arc:$src0, vrc:$src1),
|
|
|
|
opName#"_e32 $dst, $src0, $src1", []
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName>;
|
2013-02-21 23:16:44 +08:00
|
|
|
|
|
|
|
def _e64 : VOP3 <
|
|
|
|
{0, op{7}, op{6}, op{5}, op{4}, op{3}, op{2}, op{1}, op{0}},
|
|
|
|
(outs SReg_64:$dst),
|
2013-02-27 01:52:23 +08:00
|
|
|
(ins arc:$src0, arc:$src1,
|
2013-02-21 23:16:44 +08:00
|
|
|
InstFlag:$abs, InstFlag:$clamp,
|
|
|
|
InstFlag:$omod, InstFlag:$neg),
|
2013-02-21 23:17:04 +08:00
|
|
|
opName#"_e64 $dst, $src0, $src1, $abs, $clamp, $omod, $neg",
|
|
|
|
!if(!eq(!cast<string>(cond), "COND_NULL"), []<dag>,
|
2013-02-27 01:52:23 +08:00
|
|
|
[(set SReg_64:$dst, (i1 (setcc (vt arc:$src0), arc:$src1, cond)))]
|
2013-02-21 23:17:04 +08:00
|
|
|
)
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName> {
|
2013-02-21 23:16:49 +08:00
|
|
|
let SRC2 = SIOperand.ZERO;
|
2013-02-21 23:16:44 +08:00
|
|
|
}
|
2012-12-12 05:25:42 +08:00
|
|
|
}
|
|
|
|
|
2013-02-21 23:17:04 +08:00
|
|
|
multiclass VOPC_32 <bits<8> op, string opName,
|
|
|
|
ValueType vt = untyped, PatLeaf cond = COND_NULL>
|
|
|
|
: VOPC_Helper <op, VReg_32, VSrc_32, opName, vt, cond>;
|
2013-02-21 23:16:44 +08:00
|
|
|
|
2013-02-21 23:17:04 +08:00
|
|
|
multiclass VOPC_64 <bits<8> op, string opName,
|
|
|
|
ValueType vt = untyped, PatLeaf cond = COND_NULL>
|
|
|
|
: VOPC_Helper <op, VReg_64, VSrc_64, opName, vt, cond>;
|
2013-02-21 23:16:44 +08:00
|
|
|
|
2013-02-21 23:17:09 +08:00
|
|
|
class VOP3_32 <bits<9> op, string opName, list<dag> pattern> : VOP3 <
|
|
|
|
op, (outs VReg_32:$dst),
|
2013-02-27 01:52:23 +08:00
|
|
|
(ins VSrc_32:$src0, VSrc_32:$src1, VSrc_32:$src2,
|
2013-02-21 23:17:09 +08:00
|
|
|
i32imm:$abs, i32imm:$clamp, i32imm:$omod, i32imm:$neg),
|
|
|
|
opName#" $dst, $src0, $src1, $src2, $abs, $clamp, $omod, $neg", pattern
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName>;
|
2013-02-21 23:17:09 +08:00
|
|
|
|
|
|
|
class VOP3_64 <bits<9> op, string opName, list<dag> pattern> : VOP3 <
|
|
|
|
op, (outs VReg_64:$dst),
|
2013-02-27 01:52:23 +08:00
|
|
|
(ins VSrc_64:$src0, VSrc_64:$src1, VSrc_64:$src2,
|
2013-02-21 23:17:09 +08:00
|
|
|
i32imm:$abs, i32imm:$clamp, i32imm:$omod, i32imm:$neg),
|
|
|
|
opName#" $dst, $src0, $src1, $src2, $abs, $clamp, $omod, $neg", pattern
|
2013-02-27 01:52:42 +08:00
|
|
|
>, VOP <opName>;
|
2013-02-21 23:17:09 +08:00
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Vector I/O classes
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
class MTBUF_Store_Helper <bits<3> op, string asm, RegisterClass regClass> : MTBUF <
|
|
|
|
op,
|
|
|
|
(outs),
|
|
|
|
(ins regClass:$vdata, i16imm:$offset, i1imm:$offen, i1imm:$idxen, i1imm:$glc,
|
|
|
|
i1imm:$addr64, i8imm:$dfmt, i8imm:$nfmt, VReg_32:$vaddr,
|
2013-03-01 17:46:17 +08:00
|
|
|
SReg_128:$srsrc, i1imm:$slc, i1imm:$tfe, SSrc_32:$soffset),
|
2013-02-21 23:17:17 +08:00
|
|
|
asm#" $vdata, $offset, $offen, $idxen, $glc, $addr64, $dfmt,"
|
|
|
|
#" $nfmt, $vaddr, $srsrc, $slc, $tfe, $soffset",
|
2013-02-21 23:16:44 +08:00
|
|
|
[]> {
|
|
|
|
let mayStore = 1;
|
2012-12-12 05:25:42 +08:00
|
|
|
let mayLoad = 0;
|
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
class MUBUF_Load_Helper <bits<7> op, string asm, RegisterClass regClass> : MUBUF <
|
|
|
|
op,
|
|
|
|
(outs regClass:$dst),
|
|
|
|
(ins i16imm:$offset, i1imm:$offen, i1imm:$idxen, i1imm:$glc, i1imm:$addr64,
|
2013-03-01 17:46:17 +08:00
|
|
|
i1imm:$lds, VReg_32:$vaddr, SReg_128:$srsrc, i1imm:$slc,
|
2013-02-21 23:16:44 +08:00
|
|
|
i1imm:$tfe, SSrc_32:$soffset),
|
2013-02-21 23:17:17 +08:00
|
|
|
asm#" $dst, $offset, $offen, $idxen, $glc, $addr64, "
|
|
|
|
#"$lds, $vaddr, $srsrc, $slc, $tfe, $soffset",
|
2013-02-21 23:16:44 +08:00
|
|
|
[]> {
|
|
|
|
let mayLoad = 1;
|
2012-12-12 05:25:42 +08:00
|
|
|
let mayStore = 0;
|
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
class MTBUF_Load_Helper <bits<3> op, string asm, RegisterClass regClass> : MTBUF <
|
|
|
|
op,
|
|
|
|
(outs regClass:$dst),
|
|
|
|
(ins i16imm:$offset, i1imm:$offen, i1imm:$idxen, i1imm:$glc, i1imm:$addr64,
|
2013-03-01 17:46:17 +08:00
|
|
|
i8imm:$dfmt, i8imm:$nfmt, VReg_32:$vaddr, SReg_128:$srsrc,
|
2013-02-21 23:16:44 +08:00
|
|
|
i1imm:$slc, i1imm:$tfe, SSrc_32:$soffset),
|
2013-02-21 23:17:17 +08:00
|
|
|
asm#" $dst, $offset, $offen, $idxen, $glc, $addr64, $dfmt,"
|
|
|
|
#" $nfmt, $vaddr, $srsrc, $slc, $tfe, $soffset",
|
2013-02-21 23:16:44 +08:00
|
|
|
[]> {
|
|
|
|
let mayLoad = 1;
|
2012-12-12 05:25:42 +08:00
|
|
|
let mayStore = 0;
|
|
|
|
}
|
|
|
|
|
2013-02-21 23:16:44 +08:00
|
|
|
class MIMG_Load_Helper <bits<7> op, string asm> : MIMG <
|
|
|
|
op,
|
|
|
|
(outs VReg_128:$vdata),
|
|
|
|
(ins i32imm:$dmask, i1imm:$unorm, i1imm:$glc, i1imm:$da, i1imm:$r128,
|
2013-03-26 22:04:07 +08:00
|
|
|
i1imm:$tfe, i1imm:$lwe, i1imm:$slc, unknown:$vaddr,
|
2013-03-01 17:46:17 +08:00
|
|
|
SReg_256:$srsrc, SReg_128:$ssamp),
|
2013-02-21 23:17:17 +08:00
|
|
|
asm#" $vdata, $dmask, $unorm, $glc, $da, $r128,"
|
|
|
|
#" $tfe, $lwe, $slc, $vaddr, $srsrc, $ssamp",
|
2013-02-21 23:16:44 +08:00
|
|
|
[]> {
|
|
|
|
let mayLoad = 1;
|
2012-12-12 05:25:42 +08:00
|
|
|
let mayStore = 0;
|
|
|
|
}
|
|
|
|
|
2013-02-27 01:52:42 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Vector instruction mappings
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// Maps an opcode in e32 form to its e64 equivalent
|
|
|
|
def getVOPe64 : InstrMapping {
|
|
|
|
let FilterClass = "VOP";
|
|
|
|
let RowFields = ["OpName"];
|
|
|
|
let ColFields = ["Size"];
|
|
|
|
let KeyCol = ["4"];
|
|
|
|
let ValueCols = [["8"]];
|
|
|
|
}
|
|
|
|
|
2012-12-12 05:25:42 +08:00
|
|
|
include "SIInstructions.td"
|