Search in sources :

Example 1 with ExtendType

use of org.graalvm.compiler.asm.aarch64.AArch64Assembler.ExtendType in project graal by oracle.

the class AArch64AddressValue method toAddress.

public AArch64Address toAddress() {
    Register baseReg = toRegister(base);
    Register offsetReg = toRegister(offset);
    AArch64Assembler.ExtendType extendType = addressingMode == AddressingMode.EXTENDED_REGISTER_OFFSET ? ExtendType.SXTW : null;
    return AArch64Address.createAddress(addressingMode, baseReg, offsetReg, displacement / scaleFactor, isScaled(), extendType);
}
Also used : ExtendType(org.graalvm.compiler.asm.aarch64.AArch64Assembler.ExtendType) Register(jdk.vm.ci.code.Register) AArch64Assembler(org.graalvm.compiler.asm.aarch64.AArch64Assembler)

Aggregations

Register (jdk.vm.ci.code.Register)1 AArch64Assembler (org.graalvm.compiler.asm.aarch64.AArch64Assembler)1 ExtendType (org.graalvm.compiler.asm.aarch64.AArch64Assembler.ExtendType)1