aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2009-08-11 21:26:06 +0000
committerSean Callanan <scallanan@apple.com>2009-08-11 21:26:06 +0000
commitb08ae6b0fb8860badfaeb8f96908bd133f27543a (patch)
tree2bbd2820f3b57d9f2a15e2c0b1aec3fa37d54e6c
parent4b322e58b77d16f103d88a3af3a4ebd2675245a0 (diff)
Added ADD instructions with rAX as one parameter to the Intel instruction
tables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78721 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 74fb2ee886..fbfde7d6d2 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -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 {