Search in sources :

Example 1 with AMD64MathIntrinsicBinaryOp

use of org.graalvm.compiler.lir.amd64.AMD64MathIntrinsicBinaryOp in project graal by oracle.

the class AMD64ArithmeticLIRGenerator method emitMathPow.

@Override
public Value emitMathPow(Value input1, Value input2) {
    Variable result = getLIRGen().newVariable(LIRKind.combine(input1));
    getLIRGen().append(new AMD64MathIntrinsicBinaryOp(getAMD64LIRGen(), POW, result, getLIRGen().asAllocatable(input1), getLIRGen().asAllocatable(input2)));
    return result;
}
Also used : Variable(org.graalvm.compiler.lir.Variable) AMD64MathIntrinsicBinaryOp(org.graalvm.compiler.lir.amd64.AMD64MathIntrinsicBinaryOp)

Aggregations

Variable (org.graalvm.compiler.lir.Variable)1 AMD64MathIntrinsicBinaryOp (org.graalvm.compiler.lir.amd64.AMD64MathIntrinsicBinaryOp)1