hotspot/src/share/vm/adlc/archDesc.cpp
changeset 10255 bab46e6f7661
parent 7397 5b173b4ca846
child 10266 2ea344c79e33
equal deleted inserted replaced
10254:406448a00c51 10255:bab46e6f7661
   333 
   333 
   334     Attribute *attr = instr->_attribs;
   334     Attribute *attr = instr->_attribs;
   335     while (attr != NULL) {
   335     while (attr != NULL) {
   336       if (strcmp(attr->_ident,"ins_short_branch") == 0 &&
   336       if (strcmp(attr->_ident,"ins_short_branch") == 0 &&
   337           attr->int_val(*this) != 0) {
   337           attr->int_val(*this) != 0) {
       
   338         if (!instr->is_ideal_branch() || instr->label_position() == -1) {
       
   339           syntax_err(instr->_linenum, "%s: Only short branch to a label is supported\n", rootOp);
       
   340         }
   338         instr->set_short_branch(true);
   341         instr->set_short_branch(true);
   339       } else if (strcmp(attr->_ident,"ins_alignment") == 0 &&
   342       } else if (strcmp(attr->_ident,"ins_alignment") == 0 &&
   340           attr->int_val(*this) != 0) {
   343           attr->int_val(*this) != 0) {
   341         instr->set_alignment(attr->int_val(*this));
   344         instr->set_alignment(attr->int_val(*this));
   342       }
   345       }