aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/patio/instructions/PatioIntSub.java
blob: bf6950c84bb0e5ae34239ee759da7b5ecab76feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.shedlang.compiler.patio.instructions;

import org.shedlang.compiler.patio.operands.PatioLocalRef;
import org.shedlang.compiler.patio.operands.PatioOperand;
import org.shedlang.compiler.sources.Source;

/// Calculate the left operand minus the right operand, and store the result in
/// the destination.
public record PatioIntSub(
    PatioLocalRef destination,
    PatioOperand left,
    PatioOperand right,
    Source source
) implements PatioInstructionBinaryOperation, PatioInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}