Enum cranelift_codegen_shared::condcodes::IntCC [−][src]
pub enum IntCC {
Equal,
NotEqual,
SignedLessThan,
SignedGreaterThanOrEqual,
SignedGreaterThan,
SignedLessThanOrEqual,
UnsignedLessThan,
UnsignedGreaterThanOrEqual,
UnsignedGreaterThan,
UnsignedLessThanOrEqual,
Overflow,
NotOverflow,
}
Expand description
Condition code for comparing integers.
This condition code is used by the icmp
instruction to compare integer values. There are
separate codes for comparing the integers as signed or unsigned numbers where it makes a
difference.
Variants
==
.
!=
.
Signed <
.
Signed >=
.
Signed >
.
Signed <=
.
Unsigned <
.
Unsigned >=
.
Unsigned >
.
Unsigned <=
.
Signed Overflow.
Signed No Overflow.
Implementations
Get the corresponding IntCC with the equal component removed. For conditions without a zero component, this is a no-op.
Get the corresponding IntCC with the signed component removed. For conditions without a signed component, this is a no-op.
Get the corresponding string condition code for the IntCC object.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IntCC
impl UnwindSafe for IntCC
Blanket Implementations
Mutably borrows from an owned value. Read more