types.hh (4276:f0030662ee2a) | types.hh (4334:15815fd6b30c) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 147 unchanged lines hidden (view full) --- 156 (uint8_t)emi.modRM, (uint8_t)emi.sib, 157 emi.immediate, emi.displacement); 158 return os; 159 } 160 161 inline static bool 162 operator == (const ExtMachInst &emi1, const ExtMachInst &emi2) 163 { | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 147 unchanged lines hidden (view full) --- 156 (uint8_t)emi.modRM, (uint8_t)emi.sib, 157 emi.immediate, emi.displacement); 158 return os; 159 } 160 161 inline static bool 162 operator == (const ExtMachInst &emi1, const ExtMachInst &emi2) 163 { |
164 //Since this is empty, it's always equal | 164 if(emi1.legacy != emi2.legacy) 165 return false; 166 if(emi1.rex != emi2.rex) 167 return false; 168 if(emi1.opcode.num != emi2.opcode.num) 169 return false; 170 if(emi1.opcode.op != emi2.opcode.op) 171 return false; 172 if(emi1.opcode.prefixA != emi2.opcode.prefixA) 173 return false; 174 if(emi1.opcode.prefixB != emi2.opcode.prefixB) 175 return false; 176 if(emi1.modRM != emi2.modRM) 177 return false; 178 if(emi1.sib != emi2.sib) 179 return false; 180 if(emi1.immediate != emi2.immediate) 181 return false; 182 if(emi1.displacement != emi2.displacement) 183 return false; |
165 return true; 166 } 167 168 typedef uint64_t IntReg; 169 //XXX Should this be a 128 bit structure for XMM memory ops? 170 typedef uint64_t LargestRead; 171 typedef uint64_t MiscReg; 172 --- 26 unchanged lines hidden --- | 184 return true; 185 } 186 187 typedef uint64_t IntReg; 188 //XXX Should this be a 128 bit structure for XMM memory ops? 189 typedef uint64_t LargestRead; 190 typedef uint64_t MiscReg; 191 --- 26 unchanged lines hidden --- |