Mercurial > hg > graal-compiler
changeset 17145:d75276c49399
[SPARC] Add a index register, when offset is too large
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Wed, 17 Sep 2014 17:06:06 -0700 |
parents | 44a96c7413a7 |
children | 2e4bd9de8682 |
files | graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Wed Sep 17 17:05:18 2014 -0700 +++ b/graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java Wed Sep 17 17:06:06 2014 -0700 @@ -179,9 +179,8 @@ // If we don't have an index register we can use a displacement, otherwise load the // displacement into a register and add it to the base. - if (indexRegister.equals(Value.ILLEGAL)) { + if (indexRegister.equals(Value.ILLEGAL) && SPARCAssembler.isSimm13(finalDisp)) { displacementInt = (int) finalDisp; - assert SPARCAssembler.isSimm13(displacementInt) : displacementInt; } else { displacementInt = 0; if (baseRegister.equals(Value.ILLEGAL)) {