operands.isa revision 4279:acc38276ca1d
16700Snate@binkert.org// Copyright (c) 2007 The Regents of The University of Michigan 26700Snate@binkert.org// All rights reserved. 36700Snate@binkert.org// 46700Snate@binkert.org// Redistribution and use in source and binary forms, with or without 56700Snate@binkert.org// modification, are permitted provided that the following conditions are 66700Snate@binkert.org// met: redistributions of source code must retain the above copyright 76700Snate@binkert.org// notice, this list of conditions and the following disclaimer; 86700Snate@binkert.org// redistributions in binary form must reproduce the above copyright 96700Snate@binkert.org// notice, this list of conditions and the following disclaimer in the 106700Snate@binkert.org// documentation and/or other materials provided with the distribution; 116700Snate@binkert.org// neither the name of the copyright holders nor the names of its 126700Snate@binkert.org// contributors may be used to endorse or promote products derived from 136700Snate@binkert.org// this software without specific prior written permission. 146700Snate@binkert.org// 156700Snate@binkert.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 166700Snate@binkert.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 176700Snate@binkert.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 186700Snate@binkert.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 196700Snate@binkert.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 206700Snate@binkert.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 216700Snate@binkert.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 226700Snate@binkert.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 236700Snate@binkert.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 246700Snate@binkert.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 256700Snate@binkert.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 266700Snate@binkert.org// 276700Snate@binkert.org// Authors: Gabe Black 286285Snate@binkert.org 297805Snilay@cs.wisc.edu// Copyright (c) 2007 The Hewlett-Packard Development Company 306285Snate@binkert.org// All rights reserved. 316285Snate@binkert.org// 328255SBrad.Beckmann@amd.com// Redistribution and use of this software in source and binary forms, 338645Snilay@cs.wisc.edu// with or without modification, are permitted provided that the 346285Snate@binkert.org// following conditions are met: 359275Snilay@cs.wisc.edu// 369275Snilay@cs.wisc.edu// The software must be used only for Non-Commercial Use which means any 379275Snilay@cs.wisc.edu// use which is NOT directed to receiving any direct monetary 389275Snilay@cs.wisc.edu// compensation for, or commercial advantage from such use. Illustrative 396876Ssteve.reinhardt@amd.com// examples of non-commercial use are academic research, personal study, 406876Ssteve.reinhardt@amd.com// teaching, education and corporate research & development. 416285Snate@binkert.org// Illustrative examples of commercial use are distributing products for 426876Ssteve.reinhardt@amd.com// commercial advantage and providing services using the software for 436876Ssteve.reinhardt@amd.com// commercial advantage. 446876Ssteve.reinhardt@amd.com// 456876Ssteve.reinhardt@amd.com// If you wish to use this software or functionality therein that may be 466881SBrad.Beckmann@amd.com// covered by patents for commercial use, please contact: 476881SBrad.Beckmann@amd.com// Director of Intellectual Property Licensing 487054Snate@binkert.org// Office of Strategy and Technology 496881SBrad.Beckmann@amd.com// Hewlett-Packard Company 506881SBrad.Beckmann@amd.com// 1501 Page Mill Road 516876Ssteve.reinhardt@amd.com// Palo Alto, California 94304 526876Ssteve.reinhardt@amd.com// 536881SBrad.Beckmann@amd.com// Redistributions of source code must retain the above copyright notice, 546881SBrad.Beckmann@amd.com// this list of conditions and the following disclaimer. Redistributions 556881SBrad.Beckmann@amd.com// in binary form must reproduce the above copyright notice, this list of 568436SBrad.Beckmann@amd.com// conditions and the following disclaimer in the documentation and/or 576285Snate@binkert.org// other materials provided with the distribution. Neither the name of 586285Snate@binkert.org// the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 597054Snate@binkert.org// contributors may be used to endorse or promote products derived from 607054Snate@binkert.org// this software without specific prior written permission. No right of 616285Snate@binkert.org// sublicense is granted herewith. Derivatives of the software and 627054Snate@binkert.org// output created using the software may be prepared, but only for 636285Snate@binkert.org// Non-Commercial Uses. Derivatives of the software may be shared with 646493STushar.Krishna@amd.com// others provided: (i) the others agree to abide by the list of 659275Snilay@cs.wisc.edu// conditions herein which includes the Non-Commercial Use restrictions; 667054Snate@binkert.org// and (ii) such Derivatives of the software include the above copyright 676493STushar.Krishna@amd.com// notice to acknowledge the contribution from this software where 687054Snate@binkert.org// applicable, this list of conditions and the disclaimer below. 697054Snate@binkert.org// 707805Snilay@cs.wisc.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 717054Snate@binkert.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 727054Snate@binkert.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 737054Snate@binkert.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 747054Snate@binkert.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 757054Snate@binkert.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 767054Snate@binkert.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 777548SBrad.Beckmann@amd.com// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 787904SBrad.Beckmann@amd.com// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 797054Snate@binkert.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 807054Snate@binkert.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 817054Snate@binkert.org// 827054Snate@binkert.org// Authors: Gabe Black 837054Snate@binkert.org 847054Snate@binkert.orgdef operand_types {{ 857054Snate@binkert.org 'sb' : ('signed int', 8), 867054Snate@binkert.org 'ub' : ('unsigned int', 8), 877054Snate@binkert.org 'sw' : ('signed int', 16), 887054Snate@binkert.org 'uw' : ('unsigned int', 16), 897054Snate@binkert.org 'sdw' : ('signed int', 32), 907054Snate@binkert.org 'udw' : ('unsigned int', 32), 917054Snate@binkert.org 'sqw' : ('signed int', 64), 927805Snilay@cs.wisc.edu 'uqw' : ('unsigned int', 64), 937054Snate@binkert.org 'sf' : ('float', 32), 947054Snate@binkert.org 'df' : ('float', 64), 956493STushar.Krishna@amd.com 'qf' : ('float', 128) 967054Snate@binkert.org}}; 977454Snate@binkert.org 987054Snate@binkert.orgdef operands {{ 997054Snate@binkert.org # This is just copied from SPARC, because having no operands confuses 1007054Snate@binkert.org # the parser. 1017054Snate@binkert.org 'Rd': ('IntReg', 'udw', 'RD', 'IsInteger', 1) 102}}; 103