[llvm-commits] [llvm] r81914 - in /llvm/trunk/lib/Target/X86: X86Instr64bit.td X86InstrInfo.td
Eli Friedman
eli.friedman at gmail.com
Tue Sep 15 14:37:41 PDT 2009
On Tue, Sep 15, 2009 at 1:53 PM, Sean Callanan <scallanan at apple.com> wrote:
==============================================================================
> --- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
> +++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue Sep 15 15:53:57 2009
> @@ -2427,6 +2427,14 @@
> "add{l}\t{$src2, $dst|$dst, $src2}",
> [(set GR32:$dst, (add GR32:$src1, (load addr:$src2))),
> (implicit EFLAGS)]>;
> +
> +// Register-Register Addition
> +def ADD8mrmrr: I<0x02, MRMSrcReg, (outs GR8:$dst), (ins GR8:$src1, GR8:$src2),
> + "add{b}\t{$src2, $dst|$dst, $src2}", []>;
> +def ADD16mrmrr: I<0x03, MRMSrcReg,(outs GR16:$dst),(ins GR16:$src1, GR16:$src2),
> + "add{w}\t{$src2, $dst|$dst, $src2}", []>, OpSize;
> +def ADD32mrmrr: I<0x03, MRMSrcReg,(outs GR16:$dst),(ins GR16:$src1, GR16:$src2),
> + "add{l}\t{$src2, $dst|$dst, $src2}", []>;
>
> // Register-Integer Addition
> def ADD8ri : Ii8<0x80, MRM0r, (outs GR8:$dst), (ins GR8:$src1, i8imm:$src2),
It might be worth adding a comment explaining that these are
equivalent to ADD32rr and friends.
-Eli
More information about the llvm-commits
mailing list