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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b96
    • ppc

        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/

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

                Created:
                Updated:
                Resolved: