hotspot/src/share/vm/adlc/archDesc.cpp
changeset 46630 75aa3e39d02c
parent 30624 2e1803c8a26d
child 46735 219c4312853e
equal deleted inserted replaced
46629:8eeacdc76bf2 46630:75aa3e39d02c
     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) {