mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
Provide normal 32 bit load and store
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22836d1b31
commit
e00f1a722f
@ -392,12 +392,18 @@ def MOV64rihi32 : Pseudo<(outs GR64:$dst), (ins i64imm:$src),
|
||||
}
|
||||
|
||||
let canFoldAsLoad = 1, isReMaterializable = 1, mayHaveSideEffects = 1 in {
|
||||
def MOV32rm : Pseudo<(outs GR32:$dst), (ins rriaddr:$src),
|
||||
"ly\t{$dst, $src}",
|
||||
[(set GR32:$dst, (load rriaddr:$src))]>;
|
||||
def MOV64rm : Pseudo<(outs GR64:$dst), (ins rriaddr:$src),
|
||||
"lg\t{$dst, $src}",
|
||||
[(set GR64:$dst, (load rriaddr:$src))]>;
|
||||
|
||||
}
|
||||
|
||||
def MOV32mr : Pseudo<(outs), (ins rriaddr:$dst, GR32:$src),
|
||||
"sty\t{$src, $dst}",
|
||||
[(store GR32:$src, rriaddr:$dst)]>;
|
||||
def MOV64mr : Pseudo<(outs), (ins rriaddr:$dst, GR64:$src),
|
||||
"stg\t{$src, $dst}",
|
||||
[(store GR64:$src, rriaddr:$dst)]>;
|
||||
|
Loading…
Reference in New Issue
Block a user