hotspot/test/compiler/floatingpoint/libTest15FloatJNIArgs.c
author chegar
Tue, 22 Mar 2016 15:26:07 +0000
changeset 36694 182a5e7a519e
parent 35112 b3c4347bb751
child 40059 c2304140ed64
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35112
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     1
/*
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     2
 * Copyright (c) 2015. All rights reserved.
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     4
 *
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     7
 * published by the Free Software Foundation.
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     8
 *
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    13
 * accompanied this code).
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    14
 *
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    18
 *
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    21
 * questions.
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    22
 */
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    23
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    24
#include <jni.h>
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    25
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    26
#ifdef __cplusplus
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    27
extern "C" {
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    28
#endif
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    29
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    30
JNIEXPORT jfloat JNICALL Java_Test15FloatJNIArgs_add15floats
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    31
  (JNIEnv *env, jclass cls,
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    32
   jfloat  f1, jfloat  f2, jfloat  f3, jfloat  f4,
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    33
   jfloat  f5, jfloat  f6, jfloat  f7, jfloat  f8,
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    34
   jfloat  f9, jfloat f10, jfloat f11, jfloat f12,
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    35
   jfloat f13, jfloat f14, jfloat f15) {
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    36
  return f1 + f2 + f3 + f4 + f5 + f6 + f7 + f8 + f9 + f10 + f11 + f12 + f13 + f14 + f15;
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    37
}
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    38
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    39
#ifdef __cplusplus
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    40
}
b3c4347bb751 8144466: ppc64: fix argument passing through opto stubs.
goetz
parents:
diff changeset
    41
#endif