operands.isa (7720:65d338a8dba4) | operands.isa (7741:340b6f01d69b) |
---|---|
1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 34 unchanged lines hidden (view full) --- 43 'df' : ('float', 64), 44 'qf' : ('float', 128) 45}}; 46 47output header {{ 48 // A function to "decompress" double and quad floating point 49 // register numbers stuffed into 5 bit fields. These have their 50 // MSB put in the LSB position but are otherwise normal. | 1// Copyright (c) 2006-2007 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 34 unchanged lines hidden (view full) --- 43 'df' : ('float', 64), 44 'qf' : ('float', 128) 45}}; 46 47output header {{ 48 // A function to "decompress" double and quad floating point 49 // register numbers stuffed into 5 bit fields. These have their 50 // MSB put in the LSB position but are otherwise normal. |
51 static inline unsigned int dfpr(unsigned int regNum) | 51 static inline unsigned int 52 dfpr(unsigned int regNum) |
52 { 53 return (regNum & (~1)) | ((regNum & 1) << 5); 54 } 55 | 53 { 54 return (regNum & (~1)) | ((regNum & 1) << 5); 55 } 56 |
56 static inline unsigned int dfprl(unsigned int regNum) | 57 static inline unsigned int 58 dfprl(unsigned int regNum) |
57 { 58 return dfpr(regNum) & (~0x1); 59 } 60 | 59 { 60 return dfpr(regNum) & (~0x1); 61 } 62 |
61 static inline unsigned int dfprh(unsigned int regNum) | 63 static inline unsigned int 64 dfprh(unsigned int regNum) |
62 { 63 return dfpr(regNum) | 0x1; 64 } 65}}; 66 67def operands {{ 68 # Int regs default to unsigned, but code should not count on this. 69 # For clarity, descriptions that depend on unsigned behavior should --- 125 unchanged lines hidden --- | 65 { 66 return dfpr(regNum) | 0x1; 67 } 68}}; 69 70def operands {{ 71 # Int regs default to unsigned, but code should not count on this. 72 # For clarity, descriptions that depend on unsigned behavior should --- 125 unchanged lines hidden --- |