diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-06 04:58:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-06 04:58:43 +0000 |
commit | 7bbd809b6ce49b50de30f8695e8c3a7ad292949f (patch) | |
tree | 803f03ad2393e4073b9571f4944af0c0681fbccb /llvm/lib | |
parent | 9762e0a2348bce3e7e90ddf6e32309d119f48066 (diff) | |
download | bcm5719-llvm-7bbd809b6ce49b50de30f8695e8c3a7ad292949f.tar.gz bcm5719-llvm-7bbd809b6ce49b50de30f8695e8c3a7ad292949f.zip |
with tblgen suitably extended, we can now get the load node from typeinfo.
llvm-svn: 115744
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrArithmetic.td | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/X86/X86InstrArithmetic.td b/llvm/lib/Target/X86/X86InstrArithmetic.td index 33b70592915..d22b888df95 100644 --- a/llvm/lib/Target/X86/X86InstrArithmetic.td +++ b/llvm/lib/Target/X86/X86InstrArithmetic.td @@ -538,14 +538,14 @@ class BinOpRR<bits<8> opcode, string mnemonic, X86TypeInfo typeinfo, class BinOpRM<bits<8> opcode, string mnemonic, X86TypeInfo typeinfo, - SDNode opnode, PatFrag loadnode> + SDNode opnode> : I<opcode, MRMSrcMem, (outs typeinfo.RegClass:$dst), (ins typeinfo.RegClass:$src1, typeinfo.MemOperand:$src2), !strconcat(mnemonic, "{", typeinfo.InstrSuffix, "}\t{$src2, $dst|$dst, $src2}"), [(set typeinfo.RegClass:$dst, EFLAGS, - (opnode typeinfo.RegClass:$src1, (loadnode addr:$src2)))]>; + (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), |