-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ian Rogers
committed
Sep 15, 2009
1 parent
dce4731
commit 4015a0a
Showing
4 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
##### | ||
# INT_LOAD | ||
# A few more cases than for other load operators to handle pointer arithmetic introduced by use of magic | ||
##### | ||
r: INT_LOAD(riv, riv) | ||
15 | ||
EMIT_INSTRUCTION | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), MO_L(P(p), DW))); | ||
|
||
r: INT_LOAD(riv, address1scaledreg) | ||
15 | ||
EMIT_INSTRUCTION | ||
augmentAddress(Load.getAddress(P(p))); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address1scaledreg, riv) | ||
15 | ||
EMIT_INSTRUCTION | ||
augmentAddress(Load.getOffset(P(p))); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address1scaledreg, address1reg) | ||
15 | ||
EMIT_INSTRUCTION | ||
combineAddresses(); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address1reg, address1scaledreg) | ||
15 | ||
EMIT_INSTRUCTION | ||
combineAddresses(); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address, INT_CONSTANT) | ||
15 | ||
EMIT_INSTRUCTION | ||
augmentAddress(Load.getOffset(P(p))); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
##### | ||
# INT_LOAD | ||
# A few more cases than for other load operators to handle pointer arithmetic introduced by use of magic | ||
##### | ||
r: INT_LOAD(rlv, riv) | ||
15 | ||
EMIT_INSTRUCTION | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), MO_L(P(p), DW))); | ||
|
||
r: INT_LOAD(rlv, address1scaledreg) | ||
15 | ||
EMIT_INSTRUCTION | ||
augmentAddress(Load.getAddress(P(p))); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address1scaledreg, riv) | ||
15 | ||
EMIT_INSTRUCTION | ||
augmentAddress(Load.getOffset(P(p))); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address1scaledreg, address1reg) | ||
15 | ||
EMIT_INSTRUCTION | ||
combineAddresses(); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address1reg, address1scaledreg) | ||
15 | ||
EMIT_INSTRUCTION | ||
combineAddresses(); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
||
r: INT_LOAD(address, INT_CONSTANT) | ||
15 | ||
EMIT_INSTRUCTION | ||
augmentAddress(Load.getOffset(P(p))); \\ | ||
EMIT(MIR_Move.mutate(P(p), IA32_MOV, Load.getResult(P(p)), \\ | ||
consumeAddress(DW, Load.getLocation(P(p)), Load.getGuard(P(p))))); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters