# HG changeset patch # User Stefan Anzinger # Date 1410998766 25200 # Node ID d75276c49399379aa521e5e75f05467c5a88b60a # Parent 44a96c7413a7b1a6ab0edd4b6d2c52f28281571f [SPARC] Add a index register, when offset is too large diff -r 44a96c7413a7 -r d75276c49399 graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java --- 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)) {