From: Chris Lattner Date: Thu, 7 Oct 2010 20:06:24 +0000 (+0000) Subject: the opcode for BinOpMI/BinOpMI8 is always the same, remove the argument. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a2b8b16c7ece17cd964844915ff9e729fbab44c7;p=oota-llvm.git the opcode for BinOpMI/BinOpMI8 is always the same, remove the argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115967 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InstrArithmetic.td b/lib/Target/X86/X86InstrArithmetic.td index e56a4f8240b..7c024000314 100644 --- a/lib/Target/X86/X86InstrArithmetic.td +++ b/lib/Target/X86/X86InstrArithmetic.td @@ -642,7 +642,7 @@ class BinOpRM_R opcode, string mnemonic, X86TypeInfo typeinfo, // BinOpRM_RF - Instructions like "add reg, reg, [mem]". class BinOpRM_RF opcode, string mnemonic, X86TypeInfo typeinfo, - SDNode opnode> + SDNode opnode> : ITy opcode, string mnemonic, X86TypeInfo typeinfo, (implicit EFLAGS)]>; // BinOpMI - Instructions like "add [mem], imm". -class BinOpMI opcode, string mnemonic, X86TypeInfo typeinfo, +class BinOpMI - : ITy opcode, string mnemonic, X86TypeInfo typeinfo, } // BinOpMI8 - Instructions like "add [mem], imm8". -class BinOpMI8 opcode, string mnemonic, X86TypeInfo typeinfo, +class BinOpMI8 - : ITy BaseOpc, bits<8> BaseOpc2, bits<8> BaseOpc4, def #NAME#32mr : BinOpMR; def #NAME#64mr : BinOpMR; - def #NAME#8mi : BinOpMI<0x80, mnemonic, Xi8 , opnode, MemMRM>; - def #NAME#16mi : BinOpMI<0x80, mnemonic, Xi16, opnode, MemMRM>; - def #NAME#32mi : BinOpMI<0x80, mnemonic, Xi32, opnode, MemMRM>; - def #NAME#64mi32 : BinOpMI<0x80, mnemonic, Xi64, opnode, MemMRM>; + def #NAME#8mi : BinOpMI; + def #NAME#16mi : BinOpMI; + def #NAME#32mi : BinOpMI; + def #NAME#64mi32 : BinOpMI; - def #NAME#16mi8 : BinOpMI8<0x82, mnemonic, Xi16, opnode, MemMRM>; - def #NAME#32mi8 : BinOpMI8<0x82, mnemonic, Xi32, opnode, MemMRM>; - def #NAME#64mi8 : BinOpMI8<0x82, mnemonic, Xi64, opnode, MemMRM>; + def #NAME#16mi8 : BinOpMI8; + def #NAME#32mi8 : BinOpMI8; + def #NAME#64mi8 : BinOpMI8; def #NAME#8i8 : BinOpAI; def #NAME#16i16 : BinOpAI; @@ -850,14 +850,14 @@ multiclass ArithBinOp_R BaseOpc, bits<8> BaseOpc2, bits<8> BaseOpc4, def #NAME#32mr : BinOpMR; def #NAME#64mr : BinOpMR; - def #NAME#8mi : BinOpMI<0x80, mnemonic, Xi8 , opnode, MemMRM>; - def #NAME#16mi : BinOpMI<0x80, mnemonic, Xi16, opnode, MemMRM>; - def #NAME#32mi : BinOpMI<0x80, mnemonic, Xi32, opnode, MemMRM>; - def #NAME#64mi32 : BinOpMI<0x80, mnemonic, Xi64, opnode, MemMRM>; + def #NAME#8mi : BinOpMI; + def #NAME#16mi : BinOpMI; + def #NAME#32mi : BinOpMI; + def #NAME#64mi32 : BinOpMI; - def #NAME#16mi8 : BinOpMI8<0x82, mnemonic, Xi16, opnode, MemMRM>; - def #NAME#32mi8 : BinOpMI8<0x82, mnemonic, Xi32, opnode, MemMRM>; - def #NAME#64mi8 : BinOpMI8<0x82, mnemonic, Xi64, opnode, MemMRM>; + def #NAME#16mi8 : BinOpMI8; + def #NAME#32mi8 : BinOpMI8; + def #NAME#64mi8 : BinOpMI8; def #NAME#8i8 : BinOpAI; def #NAME#16i16 : BinOpAI;