Added ADD instructions with rAX as one parameter to the Intel instruction
authorSean Callanan <scallanan@apple.com>
Tue, 11 Aug 2009 21:26:06 +0000 (21:26 +0000)
committerSean Callanan <scallanan@apple.com>
Tue, 11 Aug 2009 21:26:06 +0000 (21:26 +0000)
tables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78721 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index 74fb2ee886e08751d26a7c968a4025075721c010..fbfde7d6d2e4167baafe514fd9c638cc072058d0 100644 (file)
@@ -2358,6 +2358,14 @@ let isTwoAddress = 0 in {
                   [(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 {