operands.isa revision 6299
12SN/A// -*- mode:c++ -*- 21762SN/A 32SN/A// Copyright (c) 2007-2008 The Florida State University 42SN/A// All rights reserved. 52SN/A// 62SN/A// Redistribution and use in source and binary forms, with or without 72SN/A// modification, are permitted provided that the following conditions are 82SN/A// met: redistributions of source code must retain the above copyright 92SN/A// notice, this list of conditions and the following disclaimer; 102SN/A// redistributions in binary form must reproduce the above copyright 112SN/A// notice, this list of conditions and the following disclaimer in the 122SN/A// documentation and/or other materials provided with the distribution; 132SN/A// neither the name of the copyright holders nor the names of its 142SN/A// contributors may be used to endorse or promote products derived from 152SN/A// this software without specific prior written permission. 162SN/A// 172SN/A// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182SN/A// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192SN/A// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202SN/A// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212SN/A// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222SN/A// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232SN/A// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242SN/A// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252SN/A// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262SN/A// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272665Ssaidi@eecs.umich.edu// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu// 292665Ssaidi@eecs.umich.edu// Authors: Stephen Hines 302665Ssaidi@eecs.umich.edu 312SN/Adef operand_types {{ 322SN/A 'sb' : ('signed int', 8), 332623SN/A 'ub' : ('unsigned int', 8), 342623SN/A 'sh' : ('signed int', 16), 352SN/A 'uh' : ('unsigned int', 16), 364182Sgblack@eecs.umich.edu 'sw' : ('signed int', 32), 371354SN/A 'uw' : ('unsigned int', 32), 381858SN/A 'ud' : ('unsigned int', 64), 396658Snate@binkert.org 'sf' : ('float', 32), 401717SN/A 'df' : ('float', 64) 412683Sktlim@umich.edu}}; 421354SN/A 431354SN/Adef operands {{ 442387SN/A #General Purpose Integer Reg Operands 452387SN/A 'Rd': ('IntReg', 'uw', 'RD', 'IsInteger', 1), 462387SN/A 'Rm': ('IntReg', 'uw', 'RM', 'IsInteger', 2), 4756SN/A 'Rs': ('IntReg', 'uw', 'RS', 'IsInteger', 3), 485348Ssaidi@eecs.umich.edu 'Rn': ('IntReg', 'uw', 'RN', 'IsInteger', 4), 492SN/A 502SN/A #Destination register for load/store double instructions 511858SN/A 'Rdo': ('IntReg', 'uw', '(RD & ~1)', 'IsInteger', 4), 522SN/A 'Rde': ('IntReg', 'uw', '(RD | 1)', 'IsInteger', 5), 533453Sgblack@eecs.umich.edu 543453Sgblack@eecs.umich.edu 'Raddr': ('IntReg', 'uw', '17', 'IsInteger', 6), 553453Sgblack@eecs.umich.edu 'Rhi': ('IntReg', 'uw', '18', 'IsInteger', 7), 563453Sgblack@eecs.umich.edu 'Rlo': ('IntReg', 'uw', '19', 'IsInteger', 8), 573453Sgblack@eecs.umich.edu 'LR': ('IntReg', 'uw', '14', 'IsInteger', 9), 582462SN/A 592SN/A #General Purpose Floating Point Reg Operands 60715SN/A 'Fd': ('FloatReg', 'df', 'FD', 'IsFloating', 20), 61715SN/A 'Fn': ('FloatReg', 'df', 'FN', 'IsFloating', 21), 62715SN/A 'Fm': ('FloatReg', 'df', 'FM', 'IsFloating', 22), 63715SN/A 642SN/A #Memory Operand 652SN/A 'Mem': ('Mem', 'uw', None, ('IsMemRef', 'IsLoad', 'IsStore'), 30), 663960Sgblack@eecs.umich.edu 673960Sgblack@eecs.umich.edu 'Cpsr': ('ControlReg', 'uw', 'MISCREG_CPSR', 'IsInteger', 40), 683960Sgblack@eecs.umich.edu 'Fpsr': ('ControlReg', 'uw', 'MISCREG_FPSR', 'IsInteger', 41), 694182Sgblack@eecs.umich.edu 'NPC': ('NPC', 'uw', None, (None, None, 'IsControl'), 42), 704182Sgblack@eecs.umich.edu 'NNPC': ('NNPC', 'uw', None, (None, None, 'IsControl'), 43), 714182Sgblack@eecs.umich.edu 724182Sgblack@eecs.umich.edu}}; 732680Sktlim@umich.edu