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

loadUB2L_immI8 & loadUS2L_immI16 rules don't match some 8-bit/16-bit masks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b69

        Noticed that loadUB2L_immI8 & loadUS2L_immI16 rules don't match
        the following cases:
            static long loadS2Lmask16 (short[] sa) { return sa[0] & 0xFFFE; }
            static long loadB2L_mask8 ( byte[] ba) { return ba[0] & 0xFE; }

        Converting them into loadUB2L_immI & loadUS2L_immI solves the problem.

              vlivanov Vladimir Ivanov
              vlivanov Vladimir Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: