mirror of
https://github.com/corda/corda.git
synced 2025-01-23 12:58:35 +00:00
fix register to memory mov1 implementation
This commit is contained in:
parent
dc6c7e9121
commit
88a8e74a53
@ -1959,9 +1959,10 @@ MemoryOperand::accept(Context* c, Operation op, RegisterOperand* operand)
|
|||||||
case mov1:
|
case mov1:
|
||||||
if (BytesPerWord == 8) {
|
if (BytesPerWord == 8) {
|
||||||
if (operand->value(c) > rbx) {
|
if (operand->value(c) > rbx) {
|
||||||
c->code.append(0x40);
|
encode2(c, 0x4088, operand->value(c), this, false);
|
||||||
|
} else {
|
||||||
|
encode(c, 0x88, operand->value(c), this, false);
|
||||||
}
|
}
|
||||||
encode(c, 0x88, operand->value(c), this, false);
|
|
||||||
} else {
|
} else {
|
||||||
if (operand->value(c) > rbx) {
|
if (operand->value(c) > rbx) {
|
||||||
RegisterOperand* ax = temporary(c, rax);
|
RegisterOperand* ax = temporary(c, rax);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
public class Misc {
|
public class Misc {
|
||||||
private static int alpha;
|
private static int alpha;
|
||||||
private static int beta;
|
private static int beta;
|
||||||
|
private static byte byte1, byte2, byte3;
|
||||||
private int gamma;
|
private int gamma;
|
||||||
|
|
||||||
private String foo(String s) {
|
private String foo(String s) {
|
||||||
@ -51,6 +52,9 @@ public class Misc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
byte2 = 0;
|
||||||
|
expect(byte2 == 0);
|
||||||
|
|
||||||
Misc m = new Misc();
|
Misc m = new Misc();
|
||||||
m.toString();
|
m.toString();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user