Rizin
unix-like reverse engineering framework and cli tools
Sparc.h
Go to the documentation of this file.
1 //===-- Sparc.h - Top-level interface for Sparc representation --*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the entry points for global functions defined in the LLVM
11 // Sparc back-end.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 /* Capstone Disassembly Engine */
16 /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
17 
18 #ifndef CS_SPARC_TARGET_SPARC_H
19 #define CS_SPARC_TARGET_SPARC_H
20 
21 #include "capstone/sparc.h"
22 
23 inline static const char *SPARCCondCodeToString(sparc_cc CC)
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 }
62 
63 #endif
static const char * SPARCCondCodeToString(sparc_cc CC)
Definition: Sparc.h:23
#define NULL
Definition: cris-opc.c:27
sparc_cc
Enums corresponding to Sparc condition codes, both icc's and fcc's.
Definition: sparc.h:22
@ 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