src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.amd64.test/src/org/graalvm/compiler/core/amd64/test/ConstantStackMoveTest.java
changeset 57537 ecc6e394475f
parent 52910 583fd71c47d6
equal deleted inserted replaced
57536:67cce1b84a9a 57537:ecc6e394475f
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 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.
   141     public byte testByte() {
   141     public byte testByte() {
   142         return testCopyByte(stackCopyByte);
   142         return testCopyByte(stackCopyByte);
   143     }
   143     }
   144 
   144 
   145     @Test
   145     @Test
   146     public void runByte() throws Throwable {
   146     public void runByte() {
   147         runTest("testByte");
   147         runTest("testByte");
   148     }
   148     }
   149 
   149 
   150     @LIRIntrinsic
   150     @LIRIntrinsic
   151     public static short testCopyShort(LoadConstantStackSpecShort spec) {
   151     public static short testCopyShort(LoadConstantStackSpecShort spec) {
   155     public short testShort() {
   155     public short testShort() {
   156         return testCopyShort(stackCopyShort);
   156         return testCopyShort(stackCopyShort);
   157     }
   157     }
   158 
   158 
   159     @Test
   159     @Test
   160     public void runShort() throws Throwable {
   160     public void runShort() {
   161         runTest("testShort");
   161         runTest("testShort");
   162     }
   162     }
   163 
   163 
   164     @LIRIntrinsic
   164     @LIRIntrinsic
   165     public static int testCopyInt(LoadConstantStackSpecInteger spec) {
   165     public static int testCopyInt(LoadConstantStackSpecInteger spec) {
   169     public int testInt() {
   169     public int testInt() {
   170         return testCopyInt(stackCopyInt);
   170         return testCopyInt(stackCopyInt);
   171     }
   171     }
   172 
   172 
   173     @Test
   173     @Test
   174     public void runInt() throws Throwable {
   174     public void runInt() {
   175         runTest("testInt");
   175         runTest("testInt");
   176     }
   176     }
   177 
   177 
   178     @LIRIntrinsic
   178     @LIRIntrinsic
   179     public static long testCopyLong(LoadConstantStackSpecLong spec) {
   179     public static long testCopyLong(LoadConstantStackSpecLong spec) {
   183     public long testLong() {
   183     public long testLong() {
   184         return testCopyLong(stackCopyLong);
   184         return testCopyLong(stackCopyLong);
   185     }
   185     }
   186 
   186 
   187     @Test
   187     @Test
   188     public void runLong() throws Throwable {
   188     public void runLong() {
   189         runTest("testLong");
   189         runTest("testLong");
   190     }
   190     }
   191 
   191 
   192     @LIRIntrinsic
   192     @LIRIntrinsic
   193     public static float testCopyFloat(LoadConstantStackSpecFloat spec) {
   193     public static float testCopyFloat(LoadConstantStackSpecFloat spec) {
   197     public float testFloat() {
   197     public float testFloat() {
   198         return testCopyFloat(stackCopyFloat);
   198         return testCopyFloat(stackCopyFloat);
   199     }
   199     }
   200 
   200 
   201     @Test
   201     @Test
   202     public void runFloat() throws Throwable {
   202     public void runFloat() {
   203         runTest("testFloat");
   203         runTest("testFloat");
   204     }
   204     }
   205 
   205 
   206     @LIRIntrinsic
   206     @LIRIntrinsic
   207     public static double testCopyDouble(LoadConstantStackSpecDouble spec) {
   207     public static double testCopyDouble(LoadConstantStackSpecDouble spec) {
   211     public double testDouble() {
   211     public double testDouble() {
   212         return testCopyDouble(stackCopyDouble);
   212         return testCopyDouble(stackCopyDouble);
   213     }
   213     }
   214 
   214 
   215     @Test
   215     @Test
   216     public void runDouble() throws Throwable {
   216     public void runDouble() {
   217         runTest("testDouble");
   217         runTest("testDouble");
   218     }
   218     }
   219 
   219 
   220 }
   220 }