mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Add store patterns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b218434cc
commit
d30a630636
@ -175,13 +175,16 @@ def LDDFri : F3_2<3, 0b100011,
|
||||
// Section B.4 - Store Integer Instructions, p. 95
|
||||
def STBri : F3_2<3, 0b000101,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"stb $src, [$addr]", []>;
|
||||
"stb $src, [$addr]",
|
||||
[(truncstore IntRegs:$src, ADDRri:$addr, i8)]>;
|
||||
def STHri : F3_2<3, 0b000110,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"sth $src, [$addr]", []>;
|
||||
"sth $src, [$addr]",
|
||||
[(truncstore IntRegs:$src, ADDRri:$addr, i16)]>;
|
||||
def STri : F3_2<3, 0b000100,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"st $src, [$addr]", []>;
|
||||
"st $src, [$addr]",
|
||||
[(store IntRegs:$src, ADDRri:$addr)]>;
|
||||
def STDri : F3_2<3, 0b000111,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"std $src, [$addr]", []>;
|
||||
|
@ -175,13 +175,16 @@ def LDDFri : F3_2<3, 0b100011,
|
||||
// Section B.4 - Store Integer Instructions, p. 95
|
||||
def STBri : F3_2<3, 0b000101,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"stb $src, [$addr]", []>;
|
||||
"stb $src, [$addr]",
|
||||
[(truncstore IntRegs:$src, ADDRri:$addr, i8)]>;
|
||||
def STHri : F3_2<3, 0b000110,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"sth $src, [$addr]", []>;
|
||||
"sth $src, [$addr]",
|
||||
[(truncstore IntRegs:$src, ADDRri:$addr, i16)]>;
|
||||
def STri : F3_2<3, 0b000100,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"st $src, [$addr]", []>;
|
||||
"st $src, [$addr]",
|
||||
[(store IntRegs:$src, ADDRri:$addr)]>;
|
||||
def STDri : F3_2<3, 0b000111,
|
||||
(ops MEMri:$addr, IntRegs:$src),
|
||||
"std $src, [$addr]", []>;
|
||||
|
Loading…
Reference in New Issue
Block a user