equal
deleted
inserted
replaced
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 } |