< prev index next >

test/hotspot/jtreg/compiler/floatingpoint/libTestFloatJNIArgs.c

Print this page
rev 51081 : 8207838: aarch64: fix the order in which float registers are restored in restore_args
Summary: fix the order in which float registers are restored in restore_args for aarch64
Reviewed-by: aph
Contributed-by: guoge1@huawei.com

@@ -60,9 +60,22 @@
    jdouble  f9, jdouble f10, jdouble f11, jdouble f12,
    jdouble f13, jdouble f14, jdouble f15) {
   return f1 + f2 + f3 + f4 + f5 + f6 + f7 + f8 + f9 + f10 + f11 + f12 + f13 + f14 + f15;
 }
 
+JNIEXPORT jfloat JNICALL Java_compiler_floatingpoint_TestFloatJNIArgs_add5floats
+  (JNIEnv *env, jclass cls,
+   jfloat f1, jfloat f2, jfloat f3, jfloat f4,
+   jfloat f5, jfloat f6, jfloat f7, jfloat f8, jint a9, jint a10) {
+  return f1 + f2 + f3 + f4 + f5;
+}
+
+JNIEXPORT jdouble JNICALL Java_compiler_floatingpoint_TestFloatJNIArgs_add5doubles
+  (JNIEnv *env, jclass cls,
+   jdouble f1, jdouble f2, jdouble f3, jdouble f4,
+   jdouble f5, jdouble f6, jdouble f7, jdouble f8, jint a9, jint a10) {
+  return f1 + f2 + f3 + f4 + f5;
+}
 
 #ifdef __cplusplus
 }
 #endif
< prev index next >