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

C2: Wrong execution of vectorizing Interger.reverseBytes

    XMLWordPrintable

Details

    • b32
    • b19

    Description

      The attached Java Fuzzer test produces a wrong result after JDK-8288112:

      To reproduce:
      $ java -Xint Test.java > int.log
      $ java -XX:-TieredCompilation -Xcomp -XX:CompileOnly=Test Test.java > c2.log
      $ diff int.log c2.log

      $ java -Xint Reduced.java > int.log
      $ java -XX:-TieredCompilation -Xcomp -XX:CompileOnly=Reduced Reduced.java > c2.log
      $ diff int.log c2.log

      Output diff of Test.java:
      0a1
      > CompileCommand: compileonly Test.* bool compileonly = true
      16c17
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1765
      27c28
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553
      38c39
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553
      49c50
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553
      60c61
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553
      71c72
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553
      82c83
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553
      93c94
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553
      104c105
      < i24 i25 byArr = 2,-3,-1381
      ---
      > i24 i25 byArr = 2,-3,-1553

      Attachments

        1. Test.java
          7 kB
        2. FuzzerUtils.java
          13 kB
        3. Reduced.java
          0.5 kB

        Issue Links

          Activity

            People

              jbhateja Jatin Bhateja
              chagedorn Christian Hagedorn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: