handle constant-to-register "zero-extend" moves in x86.cpp

We've already been handling this case in arm.cpp and powerpc.cpp, but
apparently we've never hit this code path in x86.cpp before.  Indeed,
I've been unable to come up with a Java source code test that hits it;
it's only come up in Scala-generated bytecode.
This commit is contained in:
Joel Dice 2012-03-13 17:00:47 -06:00
parent 37044236d4
commit f2e26791a4

View File

@ -2678,6 +2678,7 @@ populateTables(ArchitectureContext* c)
bo[index(c, MoveZ, R, R)] = CAST2(moveZRR);
bo[index(c, MoveZ, M, R)] = CAST2(moveZMR);
bo[index(c, MoveZ, C, R)] = CAST2(moveCR);
bo[index(c, Add, R, R)] = CAST2(addRR);
bo[index(c, Add, C, R)] = CAST2(addCR);