mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Add mem-imm stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -55,7 +55,6 @@ SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm) :
|
||||
setSchedulingPreference(SchedulingForLatency);
|
||||
|
||||
setOperationAction(ISD::RET, MVT::Other, Custom);
|
||||
|
||||
}
|
||||
|
||||
SDValue SystemZTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {
|
||||
|
||||
@@ -223,6 +223,20 @@ def MOV64mr : Pseudo<(outs), (ins rriaddr:$dst, GR64:$src),
|
||||
"stg\t{$src, $dst}",
|
||||
[(store GR64:$src, rriaddr:$dst)]>;
|
||||
|
||||
// FIXME: displacements here are really 12 bit, not 20!
|
||||
def MOV8mi : Pseudo<(outs), (ins riaddr:$dst, i32imm:$src),
|
||||
"mvi\t{$dst, $src}",
|
||||
[(truncstorei8 (i32 imm:$src), riaddr:$dst)]>;
|
||||
def MOV16mi : Pseudo<(outs), (ins riaddr:$dst, i32imm:$src),
|
||||
"mvhhi\t{$dst, $src}",
|
||||
[(truncstorei16 (i32 imm:$src), riaddr:$dst)]>;
|
||||
def MOV32mi16 : Pseudo<(outs), (ins riaddr:$dst, i32imm:$src),
|
||||
"mvhi\t{$dst, $src}",
|
||||
[(store (i32 immSExt16:$src), riaddr:$dst)]>;
|
||||
def MOV64mi16 : Pseudo<(outs), (ins riaddr:$dst, i64imm:$src),
|
||||
"mvghi\t{$dst, $src}",
|
||||
[(store (i64 immSExt16:$src), riaddr:$dst)]>;
|
||||
|
||||
// extloads
|
||||
def MOVSX64rm8 : Pseudo<(outs GR64:$dst), (ins rriaddr:$src),
|
||||
"lgb\t{$dst, $src}",
|
||||
|
||||
Reference in New Issue
Block a user