< prev index next >

test/hotspot/jtreg/compiler/floatingpoint/TestFloatJNIArgs.java

Print this page




  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 
  24 /* @test
  25  * @bug 8139258 8165673
  26  * @summary Regression test for passing float args to a jni function.
  27  *
  28  *
  29  * @run main/othervm/native -Xint compiler.floatingpoint.TestFloatJNIArgs
  30  * @run main/othervm/native -XX:+TieredCompilation -Xcomp compiler.floatingpoint.TestFloatJNIArgs







  31  * @run main/othervm/native -XX:-TieredCompilation -Xcomp compiler.floatingpoint.TestFloatJNIArgs
  32  */
  33 
  34 package compiler.floatingpoint;
  35 
  36 public class TestFloatJNIArgs {
  37     static {
  38         try {
  39             System.loadLibrary("TestFloatJNIArgs");
  40         } catch (UnsatisfiedLinkError e) {
  41             System.out.println("could not load native lib: " + e);
  42         }
  43     }
  44 
  45     public static native float add15floats(
  46         float f1, float f2, float f3, float f4,
  47         float f5, float f6, float f7, float f8,
  48         float f9, float f10, float f11, float f12,
  49         float f13, float f14, float f15);
  50 




  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 
  24 /* @test
  25  * @bug 8139258 8165673
  26  * @summary Regression test for passing float args to a jni function.
  27  *
  28  *
  29  * @run main/othervm/native -Xint compiler.floatingpoint.TestFloatJNIArgs
  30  * @run main/othervm/native -XX:+TieredCompilation -Xcomp compiler.floatingpoint.TestFloatJNIArgs
  31  */
  32  
  33 /* @test
  34  * @bug 8139258 8165673
  35  * @summary Regression test for passing float args to a jni function.
  36  *
  37  * @requires !vm.graal.enabled
  38  * @run main/othervm/native -XX:-TieredCompilation -Xcomp compiler.floatingpoint.TestFloatJNIArgs
  39  */
  40 
  41 package compiler.floatingpoint;
  42 
  43 public class TestFloatJNIArgs {
  44     static {
  45         try {
  46             System.loadLibrary("TestFloatJNIArgs");
  47         } catch (UnsatisfiedLinkError e) {
  48             System.out.println("could not load native lib: " + e);
  49         }
  50     }
  51 
  52     public static native float add15floats(
  53         float f1, float f2, float f3, float f4,
  54         float f5, float f6, float f7, float f8,
  55         float f9, float f10, float f11, float f12,
  56         float f13, float f14, float f15);
  57 


< prev index next >