src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.sparc/src/org/graalvm/compiler/lir/sparc/SPARCControlFlow.java
changeset 58533 46b0b7fe255c
parent 52910 583fd71c47d6
equal deleted inserted replaced
58532:b4f2e13d20ea 58533:46b0b7fe255c
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   113 import jdk.vm.ci.sparc.SPARCKind;
   113 import jdk.vm.ci.sparc.SPARCKind;
   114 
   114 
   115 public class SPARCControlFlow {
   115 public class SPARCControlFlow {
   116     // This describes the maximum offset between the first emitted (load constant in to scratch,
   116     // This describes the maximum offset between the first emitted (load constant in to scratch,
   117     // if does not fit into simm5 of cbcond) instruction and the final branch instruction
   117     // if does not fit into simm5 of cbcond) instruction and the final branch instruction
   118     private static final int maximumSelfOffsetInstructions = 2;
   118     private static final int maximumSelfOffsetInstructions = 10;
   119 
   119 
   120     public static final class ReturnOp extends SPARCBlockEndOp {
   120     public static final class ReturnOp extends SPARCBlockEndOp {
   121         public static final LIRInstructionClass<ReturnOp> TYPE = LIRInstructionClass.create(ReturnOp.class);
   121         public static final LIRInstructionClass<ReturnOp> TYPE = LIRInstructionClass.create(ReturnOp.class);
   122         public static final SizeEstimate SIZE = SizeEstimate.create(2);
   122         public static final SizeEstimate SIZE = SizeEstimate.create(2);
   123 
   123