equal
deleted
inserted
replaced
1 // |
1 // |
2 // Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 // Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
3 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 // |
4 // |
5 // This code is free software; you can redistribute it and/or modify it |
5 // This code is free software; you can redistribute it and/or modify it |
6 // under the terms of the GNU General Public License version 2 only, as |
6 // under the terms of the GNU General Public License version 2 only, as |
7 // published by the Free Software Foundation. |
7 // published by the Free Software Foundation. |
305 const char *cost = costStr? costStr : defaultCost; |
305 const char *cost = costStr? costStr : defaultCost; |
306 |
306 |
307 // Find result type for match |
307 // Find result type for match |
308 const char *result = instr->reduce_result(); |
308 const char *result = instr->reduce_result(); |
309 |
309 |
310 if ( instr->is_ideal_branch() && instr->label_position() == -1 || |
310 if (( instr->is_ideal_branch() && instr->label_position() == -1) || |
311 !instr->is_ideal_branch() && instr->label_position() != -1) { |
311 (!instr->is_ideal_branch() && instr->label_position() != -1)) { |
312 syntax_err(instr->_linenum, "%s: Only branches to a label are supported\n", rootOp); |
312 syntax_err(instr->_linenum, "%s: Only branches to a label are supported\n", rootOp); |
313 } |
313 } |
314 |
314 |
315 Attribute *attr = instr->_attribs; |
315 Attribute *attr = instr->_attribs; |
316 while (attr != NULL) { |
316 while (attr != NULL) { |