sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
| 3 | /*--- Supporting routines for v-tag operations. ---*/ |
| 4 | /*--- vg_vtagops.c ---*/ |
| 5 | /*--------------------------------------------------------------------*/ |
| 6 | |
| 7 | /* |
| 8 | This file is part of Valgrind, an x86 protected-mode emulator |
| 9 | designed for debugging and profiling binaries on x86-Unixes. |
| 10 | |
| 11 | Copyright (C) 2000-2002 Julian Seward |
| 12 | jseward@acm.org |
| 13 | Julian_Seward@muraroa.demon.co.uk |
| 14 | |
| 15 | This program is free software; you can redistribute it and/or |
| 16 | modify it under the terms of the GNU General Public License as |
| 17 | published by the Free Software Foundation; either version 2 of the |
| 18 | License, or (at your option) any later version. |
| 19 | |
| 20 | This program is distributed in the hope that it will be useful, but |
| 21 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 23 | General Public License for more details. |
| 24 | |
| 25 | You should have received a copy of the GNU General Public License |
| 26 | along with this program; if not, write to the Free Software |
| 27 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 28 | 02111-1307, USA. |
| 29 | |
| 30 | The GNU General Public License is contained in the file LICENSE. |
| 31 | */ |
| 32 | |
| 33 | #include "vg_include.h" |
| 34 | #include "vg_constants.h" |
| 35 | |
| 36 | |
| 37 | /* --------------------------------------------------------------------- |
| 38 | Names of the tag ops. |
| 39 | ------------------------------------------------------------------ */ |
| 40 | |
| 41 | Char* VG_(nameOfTagOp) ( VgTagOp h ) |
| 42 | { |
| 43 | switch (h) { |
| 44 | case VgT_PCast40: return "PCast40"; |
| 45 | case VgT_PCast20: return "PCast20"; |
| 46 | case VgT_PCast10: return "PCast10"; |
| 47 | case VgT_PCast01: return "PCast01"; |
| 48 | case VgT_PCast02: return "PCast02"; |
| 49 | case VgT_PCast04: return "PCast04"; |
| 50 | case VgT_PCast14: return "PCast14"; |
| 51 | case VgT_PCast12: return "PCast12"; |
| 52 | case VgT_PCast11: return "PCast11"; |
| 53 | case VgT_Left4: return "Left4"; |
| 54 | case VgT_Left2: return "Left2"; |
| 55 | case VgT_Left1: return "Left1"; |
| 56 | case VgT_SWiden14: return "SWiden14"; |
| 57 | case VgT_SWiden24: return "SWiden24"; |
| 58 | case VgT_SWiden12: return "SWiden12"; |
| 59 | case VgT_ZWiden14: return "ZWiden14"; |
| 60 | case VgT_ZWiden24: return "ZWiden24"; |
| 61 | case VgT_ZWiden12: return "ZWiden12"; |
| 62 | case VgT_UifU4: return "UifU4"; |
| 63 | case VgT_UifU2: return "UifU2"; |
| 64 | case VgT_UifU1: return "UifU1"; |
| 65 | case VgT_UifU0: return "UifU0"; |
| 66 | case VgT_DifD4: return "DifD4"; |
| 67 | case VgT_DifD2: return "DifD2"; |
| 68 | case VgT_DifD1: return "DifD1"; |
| 69 | case VgT_ImproveAND4_TQ: return "ImproveAND4_TQ"; |
| 70 | case VgT_ImproveAND2_TQ: return "ImproveAND2_TQ"; |
| 71 | case VgT_ImproveAND1_TQ: return "ImproveAND1_TQ"; |
| 72 | case VgT_ImproveOR4_TQ: return "ImproveOR4_TQ"; |
| 73 | case VgT_ImproveOR2_TQ: return "ImproveOR2_TQ"; |
| 74 | case VgT_ImproveOR1_TQ: return "ImproveOR1_TQ"; |
| 75 | case VgT_DebugFn: return "DebugFn"; |
| 76 | default: VG_(panic)("vg_nameOfTagOp"); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | |
| 81 | /* --------------------------------------------------------------------- |
| 82 | Debugging stuff. |
| 83 | ------------------------------------------------------------------ */ |
| 84 | |
| 85 | /* Implementation for checking tag values. */ |
| 86 | |
| 87 | UInt VG_(DebugFn) ( UInt a1, UInt a2 ) |
| 88 | { |
| 89 | vg_assert(2+2 == 5); |
| 90 | return 0; |
| 91 | } |
| 92 | |
| 93 | |
| 94 | /*--------------------------------------------------------------------*/ |
| 95 | /*--- end vg_vtagops.c ---*/ |
| 96 | /*--------------------------------------------------------------------*/ |