Mercurial > hg > truffle
changeset 16891:f3bc50fe5157
use correct asXyzAddr methods in AMD64Arithmetic
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Fri, 22 Aug 2014 13:20:50 +0200 |
parents | 39e70c987476 |
children | 433ece7d941d |
files | graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64Arithmetic.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64Arithmetic.java Fri Aug 22 12:20:47 2014 +0200 +++ b/graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64Arithmetic.java Fri Aug 22 13:20:50 2014 +0200 @@ -926,16 +926,16 @@ break; case B2I: - masm.movsbl(asIntReg(dst), (AMD64Address) crb.asIntAddr(src)); + masm.movsbl(asIntReg(dst), (AMD64Address) crb.asByteAddr(src)); break; case S2I: - masm.movswl(asIntReg(dst), (AMD64Address) crb.asIntAddr(src)); + masm.movswl(asIntReg(dst), (AMD64Address) crb.asShortAddr(src)); break; case B2L: - masm.movsbq(asLongReg(dst), (AMD64Address) crb.asIntAddr(src)); + masm.movsbq(asLongReg(dst), (AMD64Address) crb.asByteAddr(src)); break; case S2L: - masm.movswq(asLongReg(dst), (AMD64Address) crb.asIntAddr(src)); + masm.movswq(asLongReg(dst), (AMD64Address) crb.asShortAddr(src)); break; case I2L: masm.movslq(asLongReg(dst), (AMD64Address) crb.asIntAddr(src));