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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: