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

Signed immediate support in .../share/assembler.hpp is broken.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Min/Max values are undefined for nbit > 32 (and nbit < 0) in:

        static int min_simm(int nbits) { return -(intptr_t(1) << (nbits - 1)) ; }
        static int max_simm(int nbits) { return (intptr_t(1) << (nbits - 1)) - 1; }
         // Test if x is within signed immediate range for nbits
         static bool is_simm(intptr_t x, int nbits) { return min_simm(nbits) <= x && x <= max_simm(nbits); }

        The max/min_simm* versions are unused (with one exception).

        Unsigned version is not provided.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                phedlin Patric Hedlin
                Reporter:
                phedlin Patric Hedlin
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: