comparison graal/com.oracle.graal.asm.sparc/src/com/oracle/graal/asm/sparc/SPARCAssembler.java @ 9843:e05af215586b

SPARC compare
author Morris Meyer <morris.meyer@oracle.com>
date Thu, 30 May 2013 22:56:22 -0400
parents 705aca4ebf2f
children 2d1687e63484
comparison
equal deleted inserted replaced
9842:1cd5e2a6f038 9843:e05af215586b
717 } 717 }
718 public Bpne(SPARCAssembler masm, CC cc, Label label) { 718 public Bpne(SPARCAssembler masm, CC cc, Label label) {
719 super(masm, Ops.BranchOp.getValue(), 0, Condition.NotZero.getValue(), 719 super(masm, Ops.BranchOp.getValue(), 0, Condition.NotZero.getValue(),
720 Op2s.Bp.getValue(), cc.getValue(), 1, 720 Op2s.Bp.getValue(), cc.getValue(), 1,
721 label.isBound() ? label.position() : patchUnbound(masm, label)); 721 label.isBound() ? label.position() : patchUnbound(masm, label));
722 }
723 }
724
725 @SuppressWarnings("unused")
726 public static class Cmp {
727 public Cmp(SPARCAssembler masm, Register a, Register b) {
728 new Subcc(masm, a, b, SPARC.r0);
729 }
730 public Cmp(SPARCAssembler masm, Register a, int simm13) {
731 new Subcc(masm, a, simm13, SPARC.r0);
722 } 732 }
723 } 733 }
724 734
725 private static int patchUnbound(SPARCAssembler masm, Label label) { 735 private static int patchUnbound(SPARCAssembler masm, Label label) {
726 label.addPatchAt(masm.codeBuffer.position()); 736 label.addPatchAt(masm.codeBuffer.position());