comparison graal/com.oracle.graal.lir.amd64/src/com/oracle/graal/lir/amd64/AMD64Compare.java @ 5540:a891c53a295b

Renaming RiKind => Kind.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 08 Jun 2012 23:47:42 +0200
parents bc647d8b0080
children b6617d13ea44
comparison
equal deleted inserted replaced
5539:bc647d8b0080 5540:a891c53a295b
61 protected void verify() { 61 protected void verify() {
62 Value x = input(0); 62 Value x = input(0);
63 Value y = input(1); 63 Value y = input(1);
64 64
65 super.verify(); 65 super.verify();
66 assert (name().startsWith("I") && x.kind == RiKind.Int && y.kind.stackKind() == RiKind.Int) 66 assert (name().startsWith("I") && x.kind == Kind.Int && y.kind.stackKind() == Kind.Int)
67 || (name().startsWith("I") && x.kind == RiKind.Jsr && y.kind == RiKind.Jsr) 67 || (name().startsWith("I") && x.kind == Kind.Jsr && y.kind == Kind.Jsr)
68 || (name().startsWith("L") && x.kind == RiKind.Long && y.kind == RiKind.Long) 68 || (name().startsWith("L") && x.kind == Kind.Long && y.kind == Kind.Long)
69 || (name().startsWith("A") && x.kind == RiKind.Object && y.kind == RiKind.Object) 69 || (name().startsWith("A") && x.kind == Kind.Object && y.kind == Kind.Object)
70 || (name().startsWith("F") && x.kind == RiKind.Float && y.kind == RiKind.Float) 70 || (name().startsWith("F") && x.kind == Kind.Float && y.kind == Kind.Float)
71 || (name().startsWith("D") && x.kind == RiKind.Double && y.kind == RiKind.Double); 71 || (name().startsWith("D") && x.kind == Kind.Double && y.kind == Kind.Double);
72 } 72 }
73 } 73 }
74 74
75 public static void emit(TargetMethodAssembler tasm, AMD64MacroAssembler masm, AMD64Compare opcode, Value x, Value y) { 75 public static void emit(TargetMethodAssembler tasm, AMD64MacroAssembler masm, AMD64Compare opcode, Value x, Value y) {
76 if (isRegister(y)) { 76 if (isRegister(y)) {