From da4b361726b16c3dd30ca25193fa9dc0092bc77b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 Oct 2010 04:58:43 +0000 Subject: with tblgen suitably extended, we can now get the load node from typeinfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115744 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrArithmetic.td | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Target/X86/X86InstrArithmetic.td b/lib/Target/X86/X86InstrArithmetic.td index 33b7059291..d22b888df9 100644 --- a/lib/Target/X86/X86InstrArithmetic.td +++ b/lib/Target/X86/X86InstrArithmetic.td @@ -538,14 +538,14 @@ class BinOpRR opcode, string mnemonic, X86TypeInfo typeinfo, class BinOpRM opcode, string mnemonic, X86TypeInfo typeinfo, - SDNode opnode, PatFrag loadnode> + SDNode opnode> : I; + (opnode typeinfo.RegClass:$src1, (typeinfo.LoadNode addr:$src2)))]>; // Logical operators. @@ -576,10 +576,10 @@ def AND64rr_REV : RI<0x23, MRMSrcReg, (outs GR64:$dst), "and{q}\t{$src2, $dst|$dst, $src2}", []>; } -def AND8rm : BinOpRM<0x22, "and", Xi8 , X86and_flag, loadi8 >; -def AND16rm : BinOpRM<0x23, "and", Xi16, X86and_flag, loadi16>, OpSize; -def AND32rm : BinOpRM<0x23, "and", Xi32, X86and_flag, loadi32>; -def AND64rm : BinOpRM<0x23, "and", Xi64, X86and_flag, loadi64>, REX_W; +def AND8rm : BinOpRM<0x22, "and", Xi8 , X86and_flag>; +def AND16rm : BinOpRM<0x23, "and", Xi16, X86and_flag>, OpSize; +def AND32rm : BinOpRM<0x23, "and", Xi32, X86and_flag>; +def AND64rm : BinOpRM<0x23, "and", Xi64, X86and_flag>, REX_W; def AND8ri : Ii8<0x80, MRM4r, (outs GR8 :$dst), (ins GR8 :$src1, i8imm :$src2), -- cgit v1.2.3