operands.isa revision 6299
16019Shines@cs.fsu.edu// -*- mode:c++ -*- 26019Shines@cs.fsu.edu 36019Shines@cs.fsu.edu// Copyright (c) 2007-2008 The Florida State University 46019Shines@cs.fsu.edu// All rights reserved. 56019Shines@cs.fsu.edu// 66019Shines@cs.fsu.edu// Redistribution and use in source and binary forms, with or without 76019Shines@cs.fsu.edu// modification, are permitted provided that the following conditions are 86019Shines@cs.fsu.edu// met: redistributions of source code must retain the above copyright 96019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer; 106019Shines@cs.fsu.edu// redistributions in binary form must reproduce the above copyright 116019Shines@cs.fsu.edu// notice, this list of conditions and the following disclaimer in the 126019Shines@cs.fsu.edu// documentation and/or other materials provided with the distribution; 136019Shines@cs.fsu.edu// neither the name of the copyright holders nor the names of its 146019Shines@cs.fsu.edu// contributors may be used to endorse or promote products derived from 156019Shines@cs.fsu.edu// this software without specific prior written permission. 166019Shines@cs.fsu.edu// 176019Shines@cs.fsu.edu// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 186019Shines@cs.fsu.edu// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 196019Shines@cs.fsu.edu// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 206019Shines@cs.fsu.edu// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 216019Shines@cs.fsu.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 226019Shines@cs.fsu.edu// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 236019Shines@cs.fsu.edu// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 246019Shines@cs.fsu.edu// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 256019Shines@cs.fsu.edu// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 266019Shines@cs.fsu.edu// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 276019Shines@cs.fsu.edu// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 286019Shines@cs.fsu.edu// 296019Shines@cs.fsu.edu// Authors: Stephen Hines 306019Shines@cs.fsu.edu 316019Shines@cs.fsu.edudef operand_types {{ 326019Shines@cs.fsu.edu 'sb' : ('signed int', 8), 336019Shines@cs.fsu.edu 'ub' : ('unsigned int', 8), 346019Shines@cs.fsu.edu 'sh' : ('signed int', 16), 356019Shines@cs.fsu.edu 'uh' : ('unsigned int', 16), 366019Shines@cs.fsu.edu 'sw' : ('signed int', 32), 376019Shines@cs.fsu.edu 'uw' : ('unsigned int', 32), 386019Shines@cs.fsu.edu 'ud' : ('unsigned int', 64), 396019Shines@cs.fsu.edu 'sf' : ('float', 32), 406019Shines@cs.fsu.edu 'df' : ('float', 64) 416019Shines@cs.fsu.edu}}; 426019Shines@cs.fsu.edu 436019Shines@cs.fsu.edudef operands {{ 446019Shines@cs.fsu.edu #General Purpose Integer Reg Operands 456019Shines@cs.fsu.edu 'Rd': ('IntReg', 'uw', 'RD', 'IsInteger', 1), 466019Shines@cs.fsu.edu 'Rm': ('IntReg', 'uw', 'RM', 'IsInteger', 2), 476019Shines@cs.fsu.edu 'Rs': ('IntReg', 'uw', 'RS', 'IsInteger', 3), 486019Shines@cs.fsu.edu 'Rn': ('IntReg', 'uw', 'RN', 'IsInteger', 4), 496019Shines@cs.fsu.edu 506299Sgblack@eecs.umich.edu #Destination register for load/store double instructions 516299Sgblack@eecs.umich.edu 'Rdo': ('IntReg', 'uw', '(RD & ~1)', 'IsInteger', 4), 526299Sgblack@eecs.umich.edu 'Rde': ('IntReg', 'uw', '(RD | 1)', 'IsInteger', 5), 536299Sgblack@eecs.umich.edu 546299Sgblack@eecs.umich.edu 'Raddr': ('IntReg', 'uw', '17', 'IsInteger', 6), 556299Sgblack@eecs.umich.edu 'Rhi': ('IntReg', 'uw', '18', 'IsInteger', 7), 566299Sgblack@eecs.umich.edu 'Rlo': ('IntReg', 'uw', '19', 'IsInteger', 8), 576299Sgblack@eecs.umich.edu 'LR': ('IntReg', 'uw', '14', 'IsInteger', 9), 586019Shines@cs.fsu.edu 596019Shines@cs.fsu.edu #General Purpose Floating Point Reg Operands 606299Sgblack@eecs.umich.edu 'Fd': ('FloatReg', 'df', 'FD', 'IsFloating', 20), 616299Sgblack@eecs.umich.edu 'Fn': ('FloatReg', 'df', 'FN', 'IsFloating', 21), 626299Sgblack@eecs.umich.edu 'Fm': ('FloatReg', 'df', 'FM', 'IsFloating', 22), 636019Shines@cs.fsu.edu 646019Shines@cs.fsu.edu #Memory Operand 656299Sgblack@eecs.umich.edu 'Mem': ('Mem', 'uw', None, ('IsMemRef', 'IsLoad', 'IsStore'), 30), 666019Shines@cs.fsu.edu 676299Sgblack@eecs.umich.edu 'Cpsr': ('ControlReg', 'uw', 'MISCREG_CPSR', 'IsInteger', 40), 686299Sgblack@eecs.umich.edu 'Fpsr': ('ControlReg', 'uw', 'MISCREG_FPSR', 'IsInteger', 41), 696299Sgblack@eecs.umich.edu 'NPC': ('NPC', 'uw', None, (None, None, 'IsControl'), 42), 706299Sgblack@eecs.umich.edu 'NNPC': ('NNPC', 'uw', None, (None, None, 'IsControl'), 43), 716019Shines@cs.fsu.edu 726019Shines@cs.fsu.edu}}; 73