aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/patio/instructions/PatioIntNotEqual.java
blob: d1d987f986ac7f2e3fbea334386a5ef90d80ada7 (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;

/// Compare the left and right operands. If they are equal, store false in the
/// destination, otherwise store true in the destination.
public record PatioIntNotEqual(
    PatioLocalRef destination,
    PatioOperand left,
    PatioOperand right,
    Source source
) implements PatioInstructionBinaryOperation, PatioInstruction {
    @Override
    public boolean isBlockTerminator() {
        return false;
    }
}