compare_and_write_rflags.py revision 5081:2ccce8600a9d
12SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company
21762SN/A# All rights reserved.
32SN/A#
42SN/A# Redistribution and use of this software in source and binary forms,
52SN/A# with or without modification, are permitted provided that the
62SN/A# following conditions are met:
72SN/A#
82SN/A# The software must be used only for Non-Commercial Use which means any
92SN/A# use which is NOT directed to receiving any direct monetary
102SN/A# compensation for, or commercial advantage from such use.  Illustrative
112SN/A# examples of non-commercial use are academic research, personal study,
122SN/A# teaching, education and corporate research & development.
132SN/A# Illustrative examples of commercial use are distributing products for
142SN/A# commercial advantage and providing services using the software for
152SN/A# commercial advantage.
162SN/A#
172SN/A# If you wish to use this software or functionality therein that may be
182SN/A# covered by patents for commercial use, please contact:
192SN/A#     Director of Intellectual Property Licensing
202SN/A#     Office of Strategy and Technology
212SN/A#     Hewlett-Packard Company
222SN/A#     1501 Page Mill Road
232SN/A#     Palo Alto, California  94304
242SN/A#
252SN/A# Redistributions of source code must retain the above copyright notice,
262SN/A# this list of conditions and the following disclaimer.  Redistributions
272665Ssaidi@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of
282760Sbinkertn@umich.edu# conditions and the following disclaimer in the documentation and/or
292760Sbinkertn@umich.edu# other materials provided with the distribution.  Neither the name of
302665Ssaidi@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
312SN/A# contributors may be used to endorse or promote products derived from
322SN/A# this software without specific prior written permission.  No right of
332SN/A# sublicense is granted herewith.  Derivatives of the software and
34363SN/A# output created using the software may be prepared, but only for
35363SN/A# Non-Commercial Uses.  Derivatives of the software may be shared with
361354SN/A# others provided: (i) the others agree to abide by the list of
372SN/A# conditions herein which includes the Non-Commercial Use restrictions;
382SN/A# and (ii) such Derivatives of the software include the above copyright
392SN/A# notice to acknowledge the contribution from this software where
402SN/A# applicable, this list of conditions and the disclaimer below.
412SN/A#
422SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
434841Ssaidi@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
44363SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4556SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
461388SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
47217SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
48363SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4956SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5056SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5156SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
521638SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5356SN/A#
542SN/A# Authors: Gabe Black
552356SN/A
562356SN/Amicrocode = '''
572356SN/A# COMISS
582SN/A# COMISD
592SN/A# UCOMISS
604000Ssaidi@eecs.umich.edu
614000Ssaidi@eecs.umich.edudef macroop UCOMISD_R_R {
624762Snate@binkert.org    compfp xmml, xmmlm
634762Snate@binkert.org};
644762Snate@binkert.org
654762Snate@binkert.orgdef macroop UCOMISD_R_M {
664762Snate@binkert.org    ldfp ufp1, seg, sib, disp
674762Snate@binkert.org    compfp xmml, ufp1
684762Snate@binkert.org};
694762Snate@binkert.org
704762Snate@binkert.orgdef macroop UCOMISD_R_P {
714762Snate@binkert.org    rdip t7
724762Snate@binkert.org    ldfp ufp1, seg, riprel, disp
734762Snate@binkert.org    compfp xmml, ufp1
744762Snate@binkert.org};
754762Snate@binkert.org'''
764762Snate@binkert.org