[llvm-commits] [llvm] r78721 - /llvm/trunk/lib/Target/X86/X86InstrInfo.td

Sean Callanan scallanan at apple.com
Tue Aug 11 14:26:07 PDT 2009


Author: spyffe
Date: Tue Aug 11 16:26:06 2009
New Revision: 78721

URL: http://llvm.org/viewvc/llvm-project?rev=78721&view=rev
Log:
Added ADD instructions with rAX as one parameter to the Intel instruction
tables.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.td

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.td?rev=78721&r1=78720&r2=78721&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.td Tue Aug 11 16:26:06 2009
@@ -2358,6 +2358,14 @@
                   [(store (add (load addr:$dst), i32immSExt8:$src2),
                                addr:$dst),
                    (implicit EFLAGS)]>;
+
+  // addition to rAX
+  def ADD8i8 : Ii8<0x04, RawFrm, (outs), (ins i8imm:$src),
+                   "add\t{$src, %al|%al, $src}", []>;
+  def ADD16i16 : Ii16<0x05, RawFrm, (outs), (ins i16imm:$src),
+                      "add\t{$src, %ax|%ax, $src}", []>, OpSize;
+  def ADD32i32 : Ii32<0x05, RawFrm, (outs), (ins i32imm:$src),
+                      "add\t{$src, %eax|%eax, $src}", []>;
 }
 
 let Uses = [EFLAGS] in {





More information about the llvm-commits mailing list