mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Fix JIT encoding of two-addr instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e42d81a83
commit
8aa01f4b43
@ -161,6 +161,11 @@ void CodeEmitterGen::run(std::ostream &o) {
|
||||
+ utostr(op++)
|
||||
+ "));\n";
|
||||
gotOp = true;
|
||||
|
||||
// If this is a two-address instruction and we just got the dest
|
||||
// op, skip the src op.
|
||||
if (op == 1 && Target.getInstruction(InstName).isTwoAddress)
|
||||
++op;
|
||||
}
|
||||
|
||||
unsigned opMask = (1 << N) - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user