X86.Cond

ghc-7.8.3: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell98

X86.Cond

Synopsis

- data Cond
  - = ALWAYS
  - | EQQ
  - | GE
  - | GEU
  - | GTT
  - | GU
  - | LE
  - | LEU
  - | LTT
  - | LU
  - | NE
  - | NEG
  - | POS
  - | CARRY
  - | OFLO
  - | PARITY
  - | NOTPARITY
- condUnsigned :: Cond -> Bool
- condToSigned :: Cond -> Cond
- condToUnsigned :: Cond -> Cond
- maybeFlipCond :: Cond -> Maybe Cond

# Documentation

data Cond Source

Constructors

ALWAYS |
EQQ |
GE |
GEU |
GTT |
GU |
LE |
LEU |
LTT |
LU |
NE |
NEG |
POS |
CARRY |
OFLO |
PARITY |
NOTPARITY |

Instances

Eq Cond |

condUnsigned :: Cond -> Bool Source

condToSigned :: Cond -> Cond Source

condToUnsigned :: Cond -> Cond Source

maybeFlipCond :: Cond -> Maybe Cond Source

`maybeFlipCond c` returns `Just c'` if it is possible to flip the arguments to the conditional `c`, and the new condition should be `c'`.