forked from capstone-engine/capstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
8,572 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
//===-- Sparc.h - Top-level interface for Sparc representation --*- C++ -*-===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This file contains the entry points for global functions defined in the LLVM | ||
// Sparc back-end. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
/* Capstone Disassembly Engine */ | ||
/* By Nguyen Anh Quynh <[email protected]>, 2013-2014 */ | ||
|
||
#ifndef CS_SPARC_TARGET_SPARC_H | ||
#define CS_SPARC_TARGET_SPARC_H | ||
|
||
#include "../../include/sparc.h" | ||
|
||
inline static const char *SPARCCondCodeToString(sparc_cc CC) | ||
{ | ||
switch (CC) { | ||
default: return NULL; // unreachable | ||
case SPARC_CC_ICC_A: return "a"; | ||
case SPARC_CC_ICC_N: return "n"; | ||
case SPARC_CC_ICC_NE: return "ne"; | ||
case SPARC_CC_ICC_E: return "e"; | ||
case SPARC_CC_ICC_G: return "g"; | ||
case SPARC_CC_ICC_LE: return "le"; | ||
case SPARC_CC_ICC_GE: return "ge"; | ||
case SPARC_CC_ICC_L: return "l"; | ||
case SPARC_CC_ICC_GU: return "gu"; | ||
case SPARC_CC_ICC_LEU: return "leu"; | ||
case SPARC_CC_ICC_CC: return "cc"; | ||
case SPARC_CC_ICC_CS: return "cs"; | ||
case SPARC_CC_ICC_POS: return "pos"; | ||
case SPARC_CC_ICC_NEG: return "neg"; | ||
case SPARC_CC_ICC_VC: return "vc"; | ||
case SPARC_CC_ICC_VS: return "vs"; | ||
|
||
case SPARC_CC_FCC_A: return "a"; | ||
case SPARC_CC_FCC_N: return "n"; | ||
case SPARC_CC_FCC_U: return "u"; | ||
case SPARC_CC_FCC_G: return "g"; | ||
case SPARC_CC_FCC_UG: return "ug"; | ||
case SPARC_CC_FCC_L: return "l"; | ||
case SPARC_CC_FCC_UL: return "ul"; | ||
case SPARC_CC_FCC_LG: return "lg"; | ||
case SPARC_CC_FCC_NE: return "ne"; | ||
case SPARC_CC_FCC_E: return "e"; | ||
case SPARC_CC_FCC_UE: return "ue"; | ||
case SPARC_CC_FCC_GE: return "ge"; | ||
case SPARC_CC_FCC_UGE: return "uge"; | ||
case SPARC_CC_FCC_LE: return "le"; | ||
case SPARC_CC_FCC_ULE: return "ule"; | ||
case SPARC_CC_FCC_O: return "o"; | ||
} | ||
} | ||
|
||
#endif |
Oops, something went wrong.