mirror of
https://github.com/corda/corda.git
synced 2025-06-21 08:40:03 +00:00
fix zero-extension of constants in x86 compiler
scalac may emit a ldc followed by an i2c, whereas javac does the conversion (including zero extension if necessary) at compile time. This commit ensures we handle the i2c case properly.
This commit is contained in:
@ -107,7 +107,7 @@ void populateTables(ArchitectureContext* c) {
|
||||
|
||||
bo[index(c, lir::MoveZ, R, R)] = CAST2(moveZRR);
|
||||
bo[index(c, lir::MoveZ, M, R)] = CAST2(moveZMR);
|
||||
bo[index(c, lir::MoveZ, C, R)] = CAST2(moveCR);
|
||||
bo[index(c, lir::MoveZ, C, R)] = CAST2(moveZCR);
|
||||
|
||||
bo[index(c, lir::Add, R, R)] = CAST2(addRR);
|
||||
bo[index(c, lir::Add, C, R)] = CAST2(addCR);
|
||||
|
Reference in New Issue
Block a user