10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 package org.graalvm.compiler.lir.jtt;
24
25 import org.junit.Assert;
26 import org.junit.Assume;
27 import org.junit.Test;
28
29 import org.graalvm.compiler.api.directives.GraalDirectives;
30 import org.graalvm.compiler.common.PermanentBailoutException;
31 import org.graalvm.compiler.debug.GraalError;
32 import org.graalvm.compiler.lir.LIRInstruction;
33 import org.graalvm.compiler.lir.LIRInstructionClass;
34 import org.graalvm.compiler.lir.asm.CompilationResultBuilder;
35 import org.graalvm.compiler.lir.gen.LIRGeneratorTool;
36
37 import jdk.vm.ci.code.BailoutException;
38 import jdk.vm.ci.meta.ResolvedJavaMethod;
39 import jdk.vm.ci.meta.Value;
40 import jdk.vm.ci.sparc.SPARC;
41
42 /**
43 * Tests the {@link BailoutException} thrown, when trying to compile huge methods, which have branch
44 * displacements which does not fit into 19 bit signed.
45 */
46 public class SPARCBranchBailoutTest extends LIRTest {
47 private static class BranchSpec extends LIRTestSpecification {
48 private final int n;
49
50 BranchSpec(int n) {
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 package org.graalvm.compiler.lir.jtt;
24
25 import org.junit.Assert;
26 import org.junit.Assume;
27 import org.junit.Test;
28
29 import org.graalvm.compiler.api.directives.GraalDirectives;
30 import org.graalvm.compiler.core.common.PermanentBailoutException;
31 import org.graalvm.compiler.debug.GraalError;
32 import org.graalvm.compiler.lir.LIRInstruction;
33 import org.graalvm.compiler.lir.LIRInstructionClass;
34 import org.graalvm.compiler.lir.asm.CompilationResultBuilder;
35 import org.graalvm.compiler.lir.gen.LIRGeneratorTool;
36
37 import jdk.vm.ci.code.BailoutException;
38 import jdk.vm.ci.meta.ResolvedJavaMethod;
39 import jdk.vm.ci.meta.Value;
40 import jdk.vm.ci.sparc.SPARC;
41
42 /**
43 * Tests the {@link BailoutException} thrown, when trying to compile huge methods, which have branch
44 * displacements which does not fit into 19 bit signed.
45 */
46 public class SPARCBranchBailoutTest extends LIRTest {
47 private static class BranchSpec extends LIRTestSpecification {
48 private final int n;
49
50 BranchSpec(int n) {
|