ghc-9.12.0.20241114: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.CmmToAsm.RV64.Cond

Synopsis

Documentation

data Cond Source #

Condition codes.

Used in conditional branches and bit setters. According to the available instruction set, some conditions are encoded as their negated opposites. I.e. these are logical things that don't necessarily map 1:1 to hardware/ISA.

Constructors

EQ

int and float

NE

int and float

SLT

signed less than

SLE

signed less than or equal

SGE

signed greater than or equal

SGT

signed greater than

ULT

unsigned less than

ULE

unsigned less than or equal

UGE

unsigned greater than or equal

UGT

unsigned greater than

FLT

floating point instruction flt

FLE

floating point instruction fle

FGE

floating point instruction fge

FGT

floating point instruction fgt

Instances

Instances details
Show Cond Source # 
Instance details

Defined in GHC.CmmToAsm.RV64.Cond

Methods

showsPrec :: Int -> Cond -> ShowS #

show :: Cond -> String #

showList :: [Cond] -> ShowS #

Eq Cond Source # 
Instance details

Defined in GHC.CmmToAsm.RV64.Cond

Methods

(==) :: Cond -> Cond -> Bool #

(/=) :: Cond -> Cond -> Bool #