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

[TEST] delete TestRotateByteAndShortVector.java as it is not doing the right work

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 25
    • hotspot
    • None

      As this test is not testing a real rotate. And it's not testing implementation in any platform.

      int shift = 2;
      byte b = 83;
      byte res = (byte) (b << shift | b >> -shift); // res = 76
      // but a real left rotate of 83 should be 77 ??

            mli Hamlin Li
            mli Hamlin Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: