diff src/share/vm/adlc/archDesc.cpp @ 3842:c7b60b601eb4

7069452: Cleanup NodeFlags Summary: Remove flags which duplicate information in Node::NodeClasses. Reviewed-by: never
author kvn
date Wed, 27 Jul 2011 17:28:36 -0700
parents f95d63e2154a
children 11211f7cb5a0
line wrap: on
line diff
--- a/src/share/vm/adlc/archDesc.cpp	Wed Jul 27 15:06:35 2011 -0700
+++ b/src/share/vm/adlc/archDesc.cpp	Wed Jul 27 17:28:36 2011 -0700
@@ -335,6 +335,9 @@
     while (attr != NULL) {
       if (strcmp(attr->_ident,"ins_short_branch") == 0 &&
           attr->int_val(*this) != 0) {
+        if (!instr->is_ideal_branch() || instr->label_position() == -1) {
+          syntax_err(instr->_linenum, "%s: Only short branch to a label is supported\n", rootOp);
+        }
         instr->set_short_branch(true);
       } else if (strcmp(attr->_ident,"ins_alignment") == 0 &&
           attr->int_val(*this) != 0) {