mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
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
This commit is contained in:
parent
4b322e58b7
commit
b08ae6b0fb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user