Fix JIT encoding of two-addr instructions.
llvm-svn: 30111
This commit is contained in:
parent
e3d2e1e41e
commit
a2d7d1c4fa
|
@ -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…
Reference in New Issue