< prev index next >

src/hotspot/share/opto/regmask.cpp

Print this page
*** 235,11 ***
  
  // Find the lowest-numbered register set in the mask.  Return the
  // HIGHEST register number in the set, or BAD if no sets.
  // Works also for size 1.
  OptoReg::Name RegMask::find_first_set(LRG &lrg, const int size) const {
!   if (lrg.is_scalable()) {
      // For scalable vector register, regmask is SlotsPerVecA bits aligned.
      assert(is_aligned_sets(SlotsPerVecA), "mask is not aligned, adjacent sets");
    } else {
      assert(is_aligned_sets(size), "mask is not aligned, adjacent sets");
    }
--- 235,11 ---
  
  // Find the lowest-numbered register set in the mask.  Return the
  // HIGHEST register number in the set, or BAD if no sets.
  // Works also for size 1.
  OptoReg::Name RegMask::find_first_set(LRG &lrg, const int size) const {
!   if (lrg.is_scalable() && lrg._is_vector) {
      // For scalable vector register, regmask is SlotsPerVecA bits aligned.
      assert(is_aligned_sets(SlotsPerVecA), "mask is not aligned, adjacent sets");
    } else {
      assert(is_aligned_sets(size), "mask is not aligned, adjacent sets");
    }
< prev index next >