src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.sparc/src/org/graalvm/compiler/lir/sparc/SPARCArithmetic.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.sparc/src/org/graalvm/compiler/lir/sparc/SPARCArithmetic.java Mon Mar 20 17:39:36 2017
--- new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.sparc/src/org/graalvm/compiler/lir/sparc/SPARCArithmetic.java Mon Mar 20 17:39:36 2017
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 69,89 ****
--- 69,89 ----
public static final class FloatConvertOp extends SPARCLIRInstruction {
public static final LIRInstructionClass<FloatConvertOp> TYPE = LIRInstructionClass.create(FloatConvertOp.class);
public static final SizeEstimate SIZE = SizeEstimate.create(5);
@Opcode private final FloatConvert opcode;
! @Def({REG, HINT}) protected AllocatableValue result;
@Use({REG}) protected Value x;
public enum FloatConvert {
F2I,
D2I,
F2L,
D2L
}
! public FloatConvertOp(FloatConvert opcode, Value x, AllocatableValue result) {
super(TYPE, SIZE);
this.opcode = opcode;
this.x = x;
this.result = result;
}
*** 136,158 ****
--- 136,158 ----
public static final class RemOp extends SPARCLIRInstruction implements SPARCTailDelayedLIRInstruction {
public static final LIRInstructionClass<RemOp> TYPE = LIRInstructionClass.create(RemOp.class);
public static final SizeEstimate SIZE = SizeEstimate.create(4);
@Opcode private final Rem opcode;
! @Def({REG}) protected AllocatableValue result;
@Alive({REG, CONST}) protected Value x;
@Alive({REG, CONST}) protected Value y;
! @Temp({REG}) protected AllocatableValue scratch1;
! @Temp({REG}) protected AllocatableValue scratch2;
@State protected LIRFrameState state;
public enum Rem {
IUREM,
LUREM
}
! public RemOp(Rem opcode, Value result, Value x, Value y, Value scratch1, Value scratch2, LIRFrameState state) {
! public RemOp(Rem opcode, AllocatableValue result, Value x, Value y, AllocatableValue scratch1, AllocatableValue scratch2, LIRFrameState state) {
super(TYPE, SIZE);
this.opcode = opcode;
this.result = result;
this.x = x;
this.y = y;
*** 219,233 ****
--- 219,233 ----
}
public static final class SPARCIMulccOp extends SPARCLIRInstruction {
public static final LIRInstructionClass<SPARCIMulccOp> TYPE = LIRInstructionClass.create(SPARCIMulccOp.class);
public static final SizeEstimate SIZE = SizeEstimate.create(10);
! @Def({REG}) protected AllocatableValue result;
! @Alive({REG}) protected AllocatableValue x;
! @Alive({REG}) protected AllocatableValue y;
! public SPARCIMulccOp(Value result, Value x, Value y) {
! public SPARCIMulccOp(AllocatableValue result, AllocatableValue x, AllocatableValue y) {
super(TYPE, SIZE);
this.result = result;
this.x = x;
this.y = y;
}
*** 256,272 ****
--- 256,272 ----
*/
public static final class SPARCLMulccOp extends SPARCLIRInstruction {
public static final LIRInstructionClass<SPARCLMulccOp> TYPE = LIRInstructionClass.create(SPARCLMulccOp.class);
public static final SizeEstimate SIZE = SizeEstimate.create(13);
! @Def({REG}) protected AllocatableValue result;
! @Alive({REG}) protected AllocatableValue x;
! @Alive({REG}) protected AllocatableValue y;
! @Temp({REG}) protected AllocatableValue scratch1;
! @Temp({REG}) protected AllocatableValue scratch2;
! public SPARCLMulccOp(Value result, Value x, Value y, LIRGeneratorTool gen) {
! public SPARCLMulccOp(AllocatableValue result, AllocatableValue x, AllocatableValue y, LIRGeneratorTool gen) {
super(TYPE, SIZE);
this.result = result;
this.x = x;
this.y = y;
this.scratch1 = gen.newVariable(LIRKind.combine(x, y));
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.sparc/src/org/graalvm/compiler/lir/sparc/SPARCArithmetic.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File