1.1 --- a/src/share/vm/adlc/archDesc.cpp Wed Jul 27 15:06:35 2011 -0700 1.2 +++ b/src/share/vm/adlc/archDesc.cpp Wed Jul 27 17:28:36 2011 -0700 1.3 @@ -335,6 +335,9 @@ 1.4 while (attr != NULL) { 1.5 if (strcmp(attr->_ident,"ins_short_branch") == 0 && 1.6 attr->int_val(*this) != 0) { 1.7 + if (!instr->is_ideal_branch() || instr->label_position() == -1) { 1.8 + syntax_err(instr->_linenum, "%s: Only short branch to a label is supported\n", rootOp); 1.9 + } 1.10 instr->set_short_branch(true); 1.11 } else if (strcmp(attr->_ident,"ins_alignment") == 0 && 1.12 attr->int_val(*this) != 0) {