operands.isa (3279:cf42adf4588f) operands.isa (3381:0897959bf0e0)
1// Copyright (c) 2006 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}};
44
45output header {{
46 // A function to "decompress" double and quad floating point
47 // register numbers stuffed into 5 bit fields. These have their
48 // MSB put in the LSB position but are otherwise normal.
49 static inline unsigned int dfpr(unsigned int regNum)
50 {
1// Copyright (c) 2006 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}};
44
45output header {{
46 // A function to "decompress" double and quad floating point
47 // register numbers stuffed into 5 bit fields. These have their
48 // MSB put in the LSB position but are otherwise normal.
49 static inline unsigned int dfpr(unsigned int regNum)
50 {
51 return regNum | ((regNum & 1) << 5);
51 return (regNum & (~1)) | ((regNum & 1) << 5);
52 }
53}};
54
55def operands {{
56 # Int regs default to unsigned, but code should not count on this.
57 # For clarity, descriptions that depend on unsigned behavior should
58 # explicitly specify '.uq'.
59 'Rd': ('IntReg', 'udw', 'RD', 'IsInteger', 1),

--- 53 unchanged lines hidden ---
52 }
53}};
54
55def operands {{
56 # Int regs default to unsigned, but code should not count on this.
57 # For clarity, descriptions that depend on unsigned behavior should
58 # explicitly specify '.uq'.
59 'Rd': ('IntReg', 'udw', 'RD', 'IsInteger', 1),

--- 53 unchanged lines hidden ---