本文整理汇总了Java中jdk.vm.ci.amd64.AMD64Kind.isXMM方法的典型用法代码示例。如果您正苦于以下问题:Java AMD64Kind.isXMM方法的具体用法?Java AMD64Kind.isXMM怎么用?Java AMD64Kind.isXMM使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jdk.vm.ci.amd64.AMD64Kind
的用法示例。
在下文中一共展示了AMD64Kind.isXMM方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: emitCode
import jdk.vm.ci.amd64.AMD64Kind; //导入方法依赖的package包/类
@Override
public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {
AMD64Kind backupKind = (AMD64Kind) backupSlot.getPlatformKind();
if (backupKind.isXMM()) {
// graal doesn't use vector values, so it's safe to backup using DOUBLE
backupKind = AMD64Kind.DOUBLE;
}
// backup scratch register
reg2stack(backupKind, crb, masm, backupSlot, scratch);
// move stack slot
stack2reg((AMD64Kind) getInput().getPlatformKind(), crb, masm, scratch, getInput());
reg2stack((AMD64Kind) getResult().getPlatformKind(), crb, masm, getResult(), scratch);
// restore scratch register
stack2reg(backupKind, crb, masm, scratch, backupSlot);
}
示例2: emitCompareBranchMemory
import jdk.vm.ci.amd64.AMD64Kind; //导入方法依赖的package包/类
public void emitCompareBranchMemory(AMD64Kind cmpKind, Value left, AMD64AddressValue right, LIRFrameState state, Condition cond, boolean unorderedIsTrue, LabelRef trueLabel, LabelRef falseLabel,
double trueLabelProbability) {
boolean mirrored = emitCompareMemory(cmpKind, left, right, state);
Condition finalCondition = mirrored ? cond.mirror() : cond;
if (cmpKind.isXMM()) {
append(new FloatBranchOp(finalCondition, unorderedIsTrue, trueLabel, falseLabel, trueLabelProbability));
} else {
append(new BranchOp(finalCondition, trueLabel, falseLabel, trueLabelProbability));
}
}