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

vectorapi: get wrong argument for `limit` in indexPartiallyInUpperRange intrinsic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 23
    • hotspot
    • None

      diff --git a/src/hotspot/share/opto/vectorIntrinsics.cpp b/src/hotspot/share/opto/vectorIntrinsics.cpp
      index c51ee30895e..fa11c054637 100644
      --- a/src/hotspot/share/opto/vectorIntrinsics.cpp
      +++ b/src/hotspot/share/opto/vectorIntrinsics.cpp
      @@ -3148,7 +3148,7 @@ bool LibraryCallKit::inline_index_partially_in_upper_range() {
         }
       
         Node* offset = argument(3);
      - Node* limit = argument(5);
      + Node* limit = argument(4);
         if (offset == nullptr || limit == nullptr) {
           if (C->print_intrinsics()) {
             tty->print_cr(" ** offset or limit argument is null");

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

              Created:
              Updated:
              Resolved: