Rizin
unix-like reverse engineering framework and cli tools
Sparc.h File Reference
#include "capstone/sparc.h"

Go to the source code of this file.

Functions

static const char * SPARCCondCodeToString (sparc_cc CC)
 

Function Documentation

◆ SPARCCondCodeToString()

static const char* SPARCCondCodeToString ( sparc_cc  CC)
inlinestatic

Definition at line 23 of file Sparc.h.

24 {
25  switch (CC) {
26  default: return NULL; // unreachable
27  case SPARC_CC_ICC_A: return "a";
28  case SPARC_CC_ICC_N: return "n";
29  case SPARC_CC_ICC_NE: return "ne";
30  case SPARC_CC_ICC_E: return "e";
31  case SPARC_CC_ICC_G: return "g";
32  case SPARC_CC_ICC_LE: return "le";
33  case SPARC_CC_ICC_GE: return "ge";
34  case SPARC_CC_ICC_L: return "l";
35  case SPARC_CC_ICC_GU: return "gu";
36  case SPARC_CC_ICC_LEU: return "leu";
37  case SPARC_CC_ICC_CC: return "cc";
38  case SPARC_CC_ICC_CS: return "cs";
39  case SPARC_CC_ICC_POS: return "pos";
40  case SPARC_CC_ICC_NEG: return "neg";
41  case SPARC_CC_ICC_VC: return "vc";
42  case SPARC_CC_ICC_VS: return "vs";
43 
44  case SPARC_CC_FCC_A: return "a";
45  case SPARC_CC_FCC_N: return "n";
46  case SPARC_CC_FCC_U: return "u";
47  case SPARC_CC_FCC_G: return "g";
48  case SPARC_CC_FCC_UG: return "ug";
49  case SPARC_CC_FCC_L: return "l";
50  case SPARC_CC_FCC_UL: return "ul";
51  case SPARC_CC_FCC_LG: return "lg";
52  case SPARC_CC_FCC_NE: return "ne";
53  case SPARC_CC_FCC_E: return "e";
54  case SPARC_CC_FCC_UE: return "ue";
55  case SPARC_CC_FCC_GE: return "ge";
56  case SPARC_CC_FCC_UGE: return "uge";
57  case SPARC_CC_FCC_LE: return "le";
58  case SPARC_CC_FCC_ULE: return "ule";
59  case SPARC_CC_FCC_O: return "o";
60  }
61 }
#define NULL
Definition: cris-opc.c:27
@ SPARC_CC_ICC_NE
Not Equal.
Definition: sparc.h:27
@ SPARC_CC_ICC_LE
Less or Equal.
Definition: sparc.h:30
@ SPARC_CC_FCC_NE
Not Equal.
Definition: sparc.h:51
@ SPARC_CC_ICC_GE
Greater or Equal.
Definition: sparc.h:31
@ SPARC_CC_ICC_N
Never.
Definition: sparc.h:26
@ SPARC_CC_ICC_G
Greater.
Definition: sparc.h:29
@ SPARC_CC_ICC_E
Equal.
Definition: sparc.h:28
@ SPARC_CC_ICC_A
Always.
Definition: sparc.h:25
@ SPARC_CC_FCC_L
Less.
Definition: sparc.h:48
@ SPARC_CC_FCC_UE
Unordered or Equal.
Definition: sparc.h:53
@ SPARC_CC_FCC_E
Equal.
Definition: sparc.h:52
@ SPARC_CC_ICC_CC
Carry Clear/Great or Equal Unsigned.
Definition: sparc.h:35
@ SPARC_CC_ICC_POS
Positive.
Definition: sparc.h:37
@ SPARC_CC_FCC_A
Always.
Definition: sparc.h:43
@ SPARC_CC_FCC_GE
Greater or Equal.
Definition: sparc.h:54
@ SPARC_CC_FCC_U
Unordered.
Definition: sparc.h:45
@ SPARC_CC_FCC_UG
Unordered or Greater.
Definition: sparc.h:47
@ SPARC_CC_FCC_LG
Less or Greater.
Definition: sparc.h:50
@ SPARC_CC_FCC_O
Ordered.
Definition: sparc.h:58
@ SPARC_CC_FCC_ULE
Unordered or Less or Equal.
Definition: sparc.h:57
@ SPARC_CC_FCC_UGE
Unordered or Greater or Equal.
Definition: sparc.h:55
@ SPARC_CC_ICC_CS
Carry Set/Less Unsigned.
Definition: sparc.h:36
@ SPARC_CC_FCC_G
Greater.
Definition: sparc.h:46
@ SPARC_CC_ICC_NEG
Negative.
Definition: sparc.h:38
@ SPARC_CC_FCC_LE
Less or Equal.
Definition: sparc.h:56
@ SPARC_CC_FCC_UL
Unordered or Less.
Definition: sparc.h:49
@ SPARC_CC_FCC_N
Never.
Definition: sparc.h:44
@ SPARC_CC_ICC_VS
Overflow Set.
Definition: sparc.h:40
@ SPARC_CC_ICC_L
Less.
Definition: sparc.h:32
@ SPARC_CC_ICC_VC
Overflow Clear.
Definition: sparc.h:39
@ SPARC_CC_ICC_LEU
Less or Equal Unsigned.
Definition: sparc.h:34
@ SPARC_CC_ICC_GU
Greater Unsigned.
Definition: sparc.h:33

References NULL, SPARC_CC_FCC_A, SPARC_CC_FCC_E, SPARC_CC_FCC_G, SPARC_CC_FCC_GE, SPARC_CC_FCC_L, SPARC_CC_FCC_LE, SPARC_CC_FCC_LG, SPARC_CC_FCC_N, SPARC_CC_FCC_NE, SPARC_CC_FCC_O, SPARC_CC_FCC_U, SPARC_CC_FCC_UE, SPARC_CC_FCC_UG, SPARC_CC_FCC_UGE, SPARC_CC_FCC_UL, SPARC_CC_FCC_ULE, SPARC_CC_ICC_A, SPARC_CC_ICC_CC, SPARC_CC_ICC_CS, SPARC_CC_ICC_E, SPARC_CC_ICC_G, SPARC_CC_ICC_GE, SPARC_CC_ICC_GU, SPARC_CC_ICC_L, SPARC_CC_ICC_LE, SPARC_CC_ICC_LEU, SPARC_CC_ICC_N, SPARC_CC_ICC_NE, SPARC_CC_ICC_NEG, SPARC_CC_ICC_POS, SPARC_CC_ICC_VC, and SPARC_CC_ICC_VS.