2012-02-28 07:46:26 +00:00
|
|
|
//===-- MipsCondMov.td - Describe Mips Conditional Moves --*- tablegen -*--===//
|
2012-02-17 01:23:50 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This is the Conditional Moves implementation.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2011-10-17 18:43:19 +00:00
|
|
|
// Conditional moves:
|
|
|
|
// These instructions are expanded in
|
|
|
|
// MipsISelLowering::EmitInstrWithCustomInserter if target does not have
|
|
|
|
// conditional move instructions.
|
|
|
|
// cond:int, data:int
|
2013-07-16 10:07:14 +00:00
|
|
|
class CMov_I_I_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
|
2013-01-04 19:16:38 +00:00
|
|
|
InstrItinClass Itin> :
|
|
|
|
InstSE<(outs DRC:$rd), (ins DRC:$rs, CRC:$rt, DRC:$F),
|
|
|
|
!strconcat(opstr, "\t$rd, $rs, $rt"), [], Itin, FrmFR> {
|
2011-10-17 18:43:19 +00:00
|
|
|
let Constraints = "$F = $rd";
|
|
|
|
}
|
|
|
|
|
|
|
|
// cond:int, data:float
|
2013-07-16 10:07:14 +00:00
|
|
|
class CMov_I_F_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
|
2012-12-13 01:41:15 +00:00
|
|
|
InstrItinClass Itin> :
|
|
|
|
InstSE<(outs DRC:$fd), (ins DRC:$fs, CRC:$rt, DRC:$F),
|
|
|
|
!strconcat(opstr, "\t$fd, $fs, $rt"), [], Itin, FrmFR> {
|
|
|
|
let Constraints = "$F = $fd";
|
|
|
|
}
|
|
|
|
|
2012-12-13 02:05:02 +00:00
|
|
|
// cond:float, data:int
|
2013-07-16 10:07:14 +00:00
|
|
|
class CMov_F_I_FT<string opstr, RegisterOperand RC, InstrItinClass Itin,
|
2012-12-13 01:41:15 +00:00
|
|
|
SDPatternOperator OpNode = null_frag> :
|
2013-07-30 10:12:14 +00:00
|
|
|
InstSE<(outs RC:$rd), (ins RC:$rs, FCCRegsOpnd:$fcc, RC:$F),
|
2013-07-26 20:51:20 +00:00
|
|
|
!strconcat(opstr, "\t$rd, $rs, $fcc"),
|
2013-07-30 10:12:14 +00:00
|
|
|
[(set RC:$rd, (OpNode RC:$rs, FCCRegsOpnd:$fcc, RC:$F))],
|
|
|
|
Itin, FrmFR> {
|
2012-12-13 01:41:15 +00:00
|
|
|
let Constraints = "$F = $rd";
|
|
|
|
}
|
|
|
|
|
2012-12-13 02:05:02 +00:00
|
|
|
// cond:float, data:float
|
2013-07-30 10:12:14 +00:00
|
|
|
class CMov_F_F_FT<string opstr, RegisterOperand RC, InstrItinClass Itin,
|
2012-12-13 01:41:15 +00:00
|
|
|
SDPatternOperator OpNode = null_frag> :
|
2013-07-30 10:12:14 +00:00
|
|
|
InstSE<(outs RC:$fd), (ins RC:$fs, FCCRegsOpnd:$fcc, RC:$F),
|
2013-07-26 20:51:20 +00:00
|
|
|
!strconcat(opstr, "\t$fd, $fs, $fcc"),
|
2013-07-30 10:12:14 +00:00
|
|
|
[(set RC:$fd, (OpNode RC:$fs, FCCRegsOpnd:$fcc, RC:$F))],
|
|
|
|
Itin, FrmFR> {
|
2012-12-13 01:41:15 +00:00
|
|
|
let Constraints = "$F = $fd";
|
|
|
|
}
|
|
|
|
|
2011-10-17 18:43:19 +00:00
|
|
|
// select patterns
|
2011-10-17 18:53:29 +00:00
|
|
|
multiclass MovzPats0<RegisterClass CRC, RegisterClass DRC,
|
|
|
|
Instruction MOVZInst, Instruction SLTOp,
|
|
|
|
Instruction SLTuOp, Instruction SLTiOp,
|
|
|
|
Instruction SLTiuOp> {
|
2012-06-14 21:03:23 +00:00
|
|
|
def : MipsPat<(select (i32 (setge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
|
2013-03-01 21:22:21 +00:00
|
|
|
def : MipsPat<(select (i32 (setuge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTuOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
|
|
|
|
def : MipsPat<(select (i32 (setge CRC:$lhs, immSExt16:$rhs)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTiOp CRC:$lhs, immSExt16:$rhs), DRC:$F)>;
|
|
|
|
def : MipsPat<(select (i32 (setuge CRC:$lh, immSExt16:$rh)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTiuOp CRC:$lh, immSExt16:$rh), DRC:$F)>;
|
|
|
|
def : MipsPat<(select (i32 (setle CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTOp CRC:$rhs, CRC:$lhs), DRC:$F)>;
|
|
|
|
def : MipsPat<(select (i32 (setule CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTuOp CRC:$rhs, CRC:$lhs), DRC:$F)>;
|
2013-03-01 21:52:08 +00:00
|
|
|
def : MipsPat<(select (i32 (setgt CRC:$lhs, immSExt16Plus1:$rhs)),
|
|
|
|
DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTiOp CRC:$lhs, (Plus1 imm:$rhs)), DRC:$F)>;
|
|
|
|
def : MipsPat<(select (i32 (setugt CRC:$lhs, immSExt16Plus1:$rhs)),
|
|
|
|
DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (SLTiuOp CRC:$lhs, (Plus1 imm:$rhs)),
|
|
|
|
DRC:$F)>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
multiclass MovzPats1<RegisterClass CRC, RegisterClass DRC,
|
|
|
|
Instruction MOVZInst, Instruction XOROp> {
|
2012-06-14 21:03:23 +00:00
|
|
|
def : MipsPat<(select (i32 (seteq CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, (XOROp CRC:$lhs, CRC:$rhs), DRC:$F)>;
|
|
|
|
def : MipsPat<(select (i32 (seteq CRC:$lhs, 0)), DRC:$T, DRC:$F),
|
|
|
|
(MOVZInst DRC:$T, CRC:$lhs, DRC:$F)>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
|
|
|
|
2012-05-09 02:29:29 +00:00
|
|
|
multiclass MovzPats2<RegisterClass CRC, RegisterClass DRC,
|
|
|
|
Instruction MOVZInst, Instruction XORiOp> {
|
2012-06-14 21:03:23 +00:00
|
|
|
def : MipsPat<
|
|
|
|
(select (i32 (seteq CRC:$lhs, immZExt16:$uimm16)), DRC:$T, DRC:$F),
|
2012-05-09 02:29:29 +00:00
|
|
|
(MOVZInst DRC:$T, (XORiOp CRC:$lhs, immZExt16:$uimm16), DRC:$F)>;
|
|
|
|
}
|
|
|
|
|
2011-10-17 18:53:29 +00:00
|
|
|
multiclass MovnPats<RegisterClass CRC, RegisterClass DRC, Instruction MOVNInst,
|
|
|
|
Instruction XOROp> {
|
2012-06-14 21:03:23 +00:00
|
|
|
def : MipsPat<(select (i32 (setne CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
|
|
|
|
(MOVNInst DRC:$T, (XOROp CRC:$lhs, CRC:$rhs), DRC:$F)>;
|
|
|
|
def : MipsPat<(select CRC:$cond, DRC:$T, DRC:$F),
|
|
|
|
(MOVNInst DRC:$T, CRC:$cond, DRC:$F)>;
|
|
|
|
def : MipsPat<(select (i32 (setne CRC:$lhs, 0)),DRC:$T, DRC:$F),
|
|
|
|
(MOVNInst DRC:$T, CRC:$lhs, DRC:$F)>;
|
2011-10-17 18:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Instantiation of instructions.
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVZ_I_I : CMov_I_I_FT<"movz", GPR32Opnd, GPR32Opnd, NoItinerary>,
|
2013-01-04 19:16:38 +00:00
|
|
|
ADD_FM<0, 0xa>;
|
2013-08-06 23:01:10 +00:00
|
|
|
|
|
|
|
let Predicates = [HasStdEnc], isCodeGenOnly = 1 in {
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVZ_I_I64 : CMov_I_I_FT<"movz", GPR32Opnd, GPR64Opnd,
|
2013-07-16 10:07:14 +00:00
|
|
|
NoItinerary>, ADD_FM<0, 0xa>;
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVZ_I64_I : CMov_I_I_FT<"movz", GPR64Opnd, GPR32Opnd,
|
2013-08-06 23:01:10 +00:00
|
|
|
NoItinerary>, ADD_FM<0, 0xa>;
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVZ_I64_I64 : CMov_I_I_FT<"movz", GPR64Opnd, GPR64Opnd,
|
2013-08-06 23:01:10 +00:00
|
|
|
NoItinerary>, ADD_FM<0, 0xa>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
|
|
|
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVN_I_I : CMov_I_I_FT<"movn", GPR32Opnd, GPR32Opnd,
|
2013-07-16 10:07:14 +00:00
|
|
|
NoItinerary>, ADD_FM<0, 0xb>;
|
2013-08-06 23:01:10 +00:00
|
|
|
|
|
|
|
let Predicates = [HasStdEnc], isCodeGenOnly = 1 in {
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVN_I_I64 : CMov_I_I_FT<"movn", GPR32Opnd, GPR64Opnd,
|
2013-07-16 10:07:14 +00:00
|
|
|
NoItinerary>, ADD_FM<0, 0xb>;
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVN_I64_I : CMov_I_I_FT<"movn", GPR64Opnd, GPR32Opnd,
|
2013-08-06 23:01:10 +00:00
|
|
|
NoItinerary>, ADD_FM<0, 0xb>;
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVN_I64_I64 : CMov_I_I_FT<"movn", GPR64Opnd, GPR64Opnd,
|
2013-08-06 23:01:10 +00:00
|
|
|
NoItinerary>, ADD_FM<0, 0xb>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
|
|
|
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVZ_I_S : CMov_I_F_FT<"movz.s", GPR32Opnd, FGR32Opnd, IIFmove>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_I_F_FM<18, 16>;
|
2013-08-06 23:01:10 +00:00
|
|
|
|
|
|
|
let isCodeGenOnly = 1 in
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVZ_I64_S : CMov_I_F_FT<"movz.s", GPR64Opnd, FGR32Opnd, IIFmove>,
|
2013-08-06 23:01:10 +00:00
|
|
|
CMov_I_F_FM<18, 16>, Requires<[HasMips64, HasStdEnc]>;
|
2011-10-17 18:53:29 +00:00
|
|
|
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVN_I_S : CMov_I_F_FT<"movn.s", GPR32Opnd, FGR32Opnd, IIFmove>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_I_F_FM<19, 16>;
|
2013-08-06 23:01:10 +00:00
|
|
|
|
|
|
|
let isCodeGenOnly = 1 in
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVN_I64_S : CMov_I_F_FT<"movn.s", GPR64Opnd, FGR32Opnd, IIFmove>,
|
2013-08-06 23:01:10 +00:00
|
|
|
CMov_I_F_FM<19, 16>, Requires<[HasMips64, HasStdEnc]>;
|
2011-10-17 18:43:19 +00:00
|
|
|
|
2012-12-07 03:06:09 +00:00
|
|
|
let Predicates = [NotFP64bit, HasStdEnc] in {
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVZ_I_D32 : CMov_I_F_FT<"movz.d", GPR32Opnd, AFGR64Opnd, IIFmove>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_I_F_FM<18, 17>;
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVN_I_D32 : CMov_I_F_FT<"movn.d", GPR32Opnd, AFGR64Opnd, IIFmove>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_I_F_FM<19, 17>;
|
2011-10-17 18:43:19 +00:00
|
|
|
}
|
2013-08-06 23:01:10 +00:00
|
|
|
|
2013-08-19 19:08:03 +00:00
|
|
|
let Predicates = [IsFP64bit, HasStdEnc], DecoderNamespace = "Mips64" in {
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVZ_I_D64 : CMov_I_F_FT<"movz.d", GPR32Opnd, FGR64Opnd, IIFmove>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_I_F_FM<18, 17>;
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVN_I_D64 : CMov_I_F_FT<"movn.d", GPR32Opnd, FGR64Opnd, IIFmove>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_I_F_FM<19, 17>;
|
2013-08-19 19:08:03 +00:00
|
|
|
let isCodeGenOnly = 1 in {
|
|
|
|
def MOVZ_I64_D64 : CMov_I_F_FT<"movz.d", GPR64Opnd, FGR64Opnd,
|
|
|
|
IIFmove>, CMov_I_F_FM<18, 17>;
|
|
|
|
def MOVN_I64_D64 : CMov_I_F_FT<"movn.d", GPR64Opnd, FGR64Opnd,
|
|
|
|
IIFmove>, CMov_I_F_FM<19, 17>;
|
|
|
|
}
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
|
|
|
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVT_I : CMov_F_I_FT<"movt", GPR32Opnd, IIArith, MipsCMovFP_T>,
|
2013-07-16 10:07:14 +00:00
|
|
|
CMov_F_I_FM<1>;
|
2013-08-06 23:01:10 +00:00
|
|
|
|
|
|
|
let isCodeGenOnly = 1 in
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVT_I64 : CMov_F_I_FT<"movt", GPR64Opnd, IIArith, MipsCMovFP_T>,
|
2013-08-06 23:01:10 +00:00
|
|
|
CMov_F_I_FM<1>, Requires<[HasMips64, HasStdEnc]>;
|
2011-10-17 18:43:19 +00:00
|
|
|
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVF_I : CMov_F_I_FT<"movf", GPR32Opnd, IIArith, MipsCMovFP_F>,
|
2013-07-16 10:07:14 +00:00
|
|
|
CMov_F_I_FM<0>;
|
2013-08-06 23:01:10 +00:00
|
|
|
|
|
|
|
let isCodeGenOnly = 1 in
|
2013-08-06 23:08:38 +00:00
|
|
|
def MOVF_I64 : CMov_F_I_FT<"movf", GPR64Opnd, IIArith, MipsCMovFP_F>,
|
2013-08-06 23:01:10 +00:00
|
|
|
CMov_F_I_FM<0>, Requires<[HasMips64, HasStdEnc]>;
|
2011-10-17 18:43:19 +00:00
|
|
|
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVT_S : CMov_F_F_FT<"movt.s", FGR32Opnd, IIFmove, MipsCMovFP_T>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_F_F_FM<16, 1>;
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVF_S : CMov_F_F_FT<"movf.s", FGR32Opnd, IIFmove, MipsCMovFP_F>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_F_F_FM<16, 0>;
|
2011-10-17 18:53:29 +00:00
|
|
|
|
2012-12-07 03:06:09 +00:00
|
|
|
let Predicates = [NotFP64bit, HasStdEnc] in {
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVT_D32 : CMov_F_F_FT<"movt.d", AFGR64Opnd, IIFmove, MipsCMovFP_T>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_F_F_FM<17, 1>;
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVF_D32 : CMov_F_F_FT<"movf.d", AFGR64Opnd, IIFmove, MipsCMovFP_F>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_F_F_FM<17, 0>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
2013-08-19 19:08:03 +00:00
|
|
|
|
|
|
|
let Predicates = [IsFP64bit, HasStdEnc], DecoderNamespace = "Mips64" in {
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVT_D64 : CMov_F_F_FT<"movt.d", FGR64Opnd, IIFmove, MipsCMovFP_T>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_F_F_FM<17, 1>;
|
2013-08-08 21:54:26 +00:00
|
|
|
def MOVF_D64 : CMov_F_F_FT<"movf.d", FGR64Opnd, IIFmove, MipsCMovFP_F>,
|
2012-12-13 01:41:15 +00:00
|
|
|
CMov_F_F_FM<17, 0>;
|
2011-10-17 18:43:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Instantiation of conditional move patterns.
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats0<GPR32, GPR32, MOVZ_I_I, SLT, SLTu, SLTi, SLTiu>;
|
|
|
|
defm : MovzPats1<GPR32, GPR32, MOVZ_I_I, XOR>;
|
|
|
|
defm : MovzPats2<GPR32, GPR32, MOVZ_I_I, XORi>;
|
2012-12-07 03:06:09 +00:00
|
|
|
let Predicates = [HasMips64, HasStdEnc] in {
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats0<GPR32, GPR64, MOVZ_I_I64, SLT, SLTu, SLTi, SLTiu>;
|
|
|
|
defm : MovzPats0<GPR64, GPR32, MOVZ_I_I, SLT64, SLTu64, SLTi64,
|
2011-10-17 18:53:29 +00:00
|
|
|
SLTiu64>;
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats0<GPR64, GPR64, MOVZ_I_I64, SLT64, SLTu64, SLTi64,
|
2011-10-17 18:53:29 +00:00
|
|
|
SLTiu64>;
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats1<GPR32, GPR64, MOVZ_I_I64, XOR>;
|
|
|
|
defm : MovzPats1<GPR64, GPR32, MOVZ_I64_I, XOR64>;
|
|
|
|
defm : MovzPats1<GPR64, GPR64, MOVZ_I64_I64, XOR64>;
|
|
|
|
defm : MovzPats2<GPR32, GPR64, MOVZ_I_I64, XORi>;
|
|
|
|
defm : MovzPats2<GPR64, GPR32, MOVZ_I64_I, XORi64>;
|
|
|
|
defm : MovzPats2<GPR64, GPR64, MOVZ_I64_I64, XORi64>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
2011-10-17 18:43:19 +00:00
|
|
|
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovnPats<GPR32, GPR32, MOVN_I_I, XOR>;
|
2012-12-07 03:06:09 +00:00
|
|
|
let Predicates = [HasMips64, HasStdEnc] in {
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovnPats<GPR32, GPR64, MOVN_I_I64, XOR>;
|
|
|
|
defm : MovnPats<GPR64, GPR32, MOVN_I64_I, XOR64>;
|
|
|
|
defm : MovnPats<GPR64, GPR64, MOVN_I64_I64, XOR64>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
2011-10-17 18:43:19 +00:00
|
|
|
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats0<GPR32, FGR32, MOVZ_I_S, SLT, SLTu, SLTi, SLTiu>;
|
|
|
|
defm : MovzPats1<GPR32, FGR32, MOVZ_I_S, XOR>;
|
|
|
|
defm : MovnPats<GPR32, FGR32, MOVN_I_S, XOR>;
|
2012-12-07 03:06:09 +00:00
|
|
|
let Predicates = [HasMips64, HasStdEnc] in {
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats0<GPR64, FGR32, MOVZ_I_S, SLT64, SLTu64, SLTi64,
|
2011-10-17 18:53:29 +00:00
|
|
|
SLTiu64>;
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats1<GPR64, FGR32, MOVZ_I64_S, XOR64>;
|
|
|
|
defm : MovnPats<GPR64, FGR32, MOVN_I64_S, XOR64>;
|
2011-10-17 18:43:19 +00:00
|
|
|
}
|
|
|
|
|
2012-12-07 03:06:09 +00:00
|
|
|
let Predicates = [NotFP64bit, HasStdEnc] in {
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats0<GPR32, AFGR64, MOVZ_I_D32, SLT, SLTu, SLTi, SLTiu>;
|
|
|
|
defm : MovzPats1<GPR32, AFGR64, MOVZ_I_D32, XOR>;
|
|
|
|
defm : MovnPats<GPR32, AFGR64, MOVN_I_D32, XOR>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|
2012-12-07 03:06:09 +00:00
|
|
|
let Predicates = [IsFP64bit, HasStdEnc] in {
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats0<GPR32, FGR64, MOVZ_I_D64, SLT, SLTu, SLTi, SLTiu>;
|
|
|
|
defm : MovzPats0<GPR64, FGR64, MOVZ_I_D64, SLT64, SLTu64, SLTi64,
|
2011-10-17 18:53:29 +00:00
|
|
|
SLTiu64>;
|
2013-08-06 23:08:38 +00:00
|
|
|
defm : MovzPats1<GPR32, FGR64, MOVZ_I_D64, XOR>;
|
|
|
|
defm : MovzPats1<GPR64, FGR64, MOVZ_I64_D64, XOR64>;
|
|
|
|
defm : MovnPats<GPR32, FGR64, MOVN_I_D64, XOR>;
|
|
|
|
defm : MovnPats<GPR64, FGR64, MOVN_I64_D64, XOR64>;
|
2011-10-17 18:53:29 +00:00
|
|
|
}
|