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

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

    Details

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

      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:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: