mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Add support for generating reg+reg preinc stores on PPC.
PPC will now generate STWUX and friends. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -111,6 +111,18 @@ namespace {
|
||||
/// immediate field. Because preinc imms have already been validated, just
|
||||
/// accept it.
|
||||
bool SelectAddrImmOffs(SDValue N, SDValue &Out) const {
|
||||
if (isa<ConstantSDNode>(N)) {
|
||||
Out = N;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// SelectAddrIdxOffs - Return true if the operand is valid for a preinc
|
||||
/// index field. Because preinc imms have already been validated, just
|
||||
/// accept it.
|
||||
bool SelectAddrIdxOffs(SDValue N, SDValue &Out) const {
|
||||
Out = N;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user