comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/IntegerEqualsNode.java @ 12695:4aec62c32a82

Helper functions for identifying numeric kinds.
author Roland Schatz <roland.schatz@oracle.com>
date Wed, 06 Nov 2013 16:29:54 +0100
parents da9db8331658
children da2431cc1506
comparison
equal deleted inserted replaced
12694:65513c398fd2 12695:4aec62c32a82
36 * @param x the instruction producing the first input to the instruction 36 * @param x the instruction producing the first input to the instruction
37 * @param y the instruction that produces the second input to this instruction 37 * @param y the instruction that produces the second input to this instruction
38 */ 38 */
39 public IntegerEqualsNode(ValueNode x, ValueNode y) { 39 public IntegerEqualsNode(ValueNode x, ValueNode y) {
40 super(x, y); 40 super(x, y);
41 assert x.kind() != Kind.Double && x.kind() != Kind.Float && x.kind() != Kind.Object; 41 assert !x.kind().isNumericFloat() && x.kind() != Kind.Object;
42 assert y.kind() != Kind.Double && y.kind() != Kind.Float && y.kind() != Kind.Object; 42 assert !y.kind().isNumericFloat() && y.kind() != Kind.Object;
43 } 43 }
44 44
45 @Override 45 @Override
46 public Condition condition() { 46 public Condition condition() {
47 return Condition.EQ; 47 return Condition.EQ;