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

Remove nds->is_valid() checks from assembler_x86.cpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • hotspot
    • None
    • b115
    • x86

      In a number of vector related instruction encoders in assembler_x86.cpp we check the validity of the "nds" argument, and fall back to encoding a zero if it is invalid. This appears to be a copy/paste error and should be fixed. As an example we have this in Assembler::vinsertf32x4h:

      int nds_enc = nds->is_valid() ? nds->encoding() : 0;

      But nds must always be a valid register, and if it's not then encoding a zero will not improve the situation.

            mcberg Michael Berg (Inactive)
            mikael Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: