Search in sources :

Example 1 with BranchOp

use of org.graalvm.compiler.lir.sparc.SPARCControlFlow.BranchOp in project graal by oracle.

the class SPARCLIRGenerator method emitOverflowCheckBranch.

@Override
public void emitOverflowCheckBranch(LabelRef overflow, LabelRef noOverflow, LIRKind cmpLIRKind, double overflowProbability) {
    SPARCKind cmpKind = (SPARCKind) cmpLIRKind.getPlatformKind();
    append(new BranchOp(ConditionFlag.OverflowSet, overflow, noOverflow, cmpKind, overflowProbability));
}
Also used : BranchOp(org.graalvm.compiler.lir.sparc.SPARCControlFlow.BranchOp) SPARCKind(jdk.vm.ci.sparc.SPARCKind)

Example 2 with BranchOp

use of org.graalvm.compiler.lir.sparc.SPARCControlFlow.BranchOp in project graal by oracle.

the class SPARCLIRGenerator method emitIntegerTestBranch.

@Override
public void emitIntegerTestBranch(Value left, Value right, LabelRef trueDestination, LabelRef falseDestination, double trueDestinationProbability) {
    emitIntegerTest(left, right);
    append(new BranchOp(ConditionFlag.Equal, trueDestination, falseDestination, (SPARCKind) left.getPlatformKind(), trueDestinationProbability));
}
Also used : BranchOp(org.graalvm.compiler.lir.sparc.SPARCControlFlow.BranchOp) SPARCKind(jdk.vm.ci.sparc.SPARCKind)

Aggregations

SPARCKind (jdk.vm.ci.sparc.SPARCKind)2 BranchOp (org.graalvm.compiler.lir.sparc.SPARCControlFlow.BranchOp)2