00001 /* 00002 * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. 00003 */ 00004 00005 /* 00006 00007 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00008 00009 This program is free software; you can redistribute it and/or modify it 00010 under the terms of version 2 of the GNU General Public License as 00011 published by the Free Software Foundation. 00012 00013 This program is distributed in the hope that it would be useful, but 00014 WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 Further, this software is distributed without any warranty that it is 00018 free of the rightful claim of any third person regarding infringement 00019 or the like. Any license provided herein, whether implied or 00020 otherwise, applies only to this software file. Patent licenses, if 00021 any, provided herein do not apply to combinations of this program with 00022 other software, or any other product whatsoever. 00023 00024 You should have received a copy of the GNU General Public License along 00025 with this program; if not, write the Free Software Foundation, Inc., 59 00026 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00027 00028 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00029 Mountain View, CA 94043, or: 00030 00031 http://www.sgi.com 00032 00033 For further information regarding this notice, see: 00034 00035 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00036 00037 */ 00038 00039 00040 /* ==================================================================== 00041 * ==================================================================== 00042 * 00043 * TN utility routines which include target dependencies. 00044 * 00045 * THIS FILE IS ONLY TO BE INCLUDE BY ../tn.h!!!! 00046 * 00047 * ==================================================================== 00048 * ==================================================================== 00049 */ 00050 00051 // 00052 // Generate TN to contain a general predicate value 00053 // 00054 00055 #include "targ_sim.h" 00056 00057 inline TN* 00058 Gen_Predicate_TN() 00059 { 00060 FmtAssert( false, ("No predicate TN for x86.") ); 00061 return Gen_Register_TN(ISA_REGISTER_CLASS_integer, 4); 00062 } 00063 00064 // 00065 // No fcc registers for this arch. 00066 // 00067 inline BOOL TN_is_fcc_register (const TN *tn) 00068 { 00069 return FALSE; 00070 } 00071 00072 inline TN* Rflags_TN() 00073 { 00074 return Build_Dedicated_TN( ISA_REGISTER_CLASS_rflags, REGISTER_MIN, 0 ); 00075 } 00076 00077 inline TN* Rip_TN() 00078 { 00079 return Build_Dedicated_TN( ISA_REGISTER_CLASS_rip, REGISTER_MIN, 0 ); 00080 } 00081 00082 inline TN* X87_cw_TN() 00083 { 00084 return Build_Dedicated_TN( ISA_REGISTER_CLASS_x87_cw, REGISTER_MIN, 0 ); 00085 } 00086 00087 inline TN* Ebx_TN() 00088 { 00089 return Build_Dedicated_TN( ISA_REGISTER_CLASS_integer, RBX, 4 ); 00090 }
1.5.6