Search in sources :

Example 1 with SPARCBitManipulationOp

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

the class SPARCArithmeticLIRGenerator method emitBitScanForward.

@Override
public Variable emitBitScanForward(Value operand) {
    Variable result = getLIRGen().newVariable(LIRKind.combine(operand).changeType(SPARCKind.WORD));
    getLIRGen().append(new SPARCBitManipulationOp(BSF, result, getLIRGen().asAllocatable(operand), getLIRGen()));
    return result;
}
Also used : Variable(org.graalvm.compiler.lir.Variable) SPARCBitManipulationOp(org.graalvm.compiler.lir.sparc.SPARCBitManipulationOp)

Aggregations

Variable (org.graalvm.compiler.lir.Variable)1 SPARCBitManipulationOp (org.graalvm.compiler.lir.sparc.SPARCBitManipulationOp)1