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 52 dfpr(unsigned int regNum) |
53 { 54 return (regNum & (~1)) | ((regNum & 1) << 5); 55 } 56 |
57 static inline unsigned int 58 dfprl(unsigned int regNum) |
59 { 60 return dfpr(regNum) & (~0x1); 61 } 62 |
63 static inline unsigned int 64 dfprh(unsigned int regNum) |
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 --- |