Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8139258

PPC64LE: argument passing problem when passing 15 floats in native call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b96
    • CPU:
      ppc

      Backports

        Description

        It seems that the ABIv2 calling convention needs different treatment for float arguments. The following native call test passes 15 float parameters, but the native code doesn’t get them correctly.

        Adding 15 times 1.0f resulted in 13.0f on a LE machine. The BE machine correctly returns 15.0f.

        Here is a test to reproduce the issue:
        http://cr.openjdk.java.net/~goetz/webrevs/ppc64le_native_float_arg_test/

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                asmundak Alexander Smundak
                Reporter:
                goetz Goetz Lindenmaier
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: