diff graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java @ 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 d980377abc6f
children 805a26002dc7
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)) {