__init__.py revision 5081
15222Sksewell@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company
25254Sksewell@umich.edu# All rights reserved.
35254Sksewell@umich.edu#
45222Sksewell@umich.edu# Redistribution and use of this software in source and binary forms,
55254Sksewell@umich.edu# with or without modification, are permitted provided that the
65254Sksewell@umich.edu# following conditions are met:
75254Sksewell@umich.edu#
85254Sksewell@umich.edu# The software must be used only for Non-Commercial Use which means any
95254Sksewell@umich.edu# use which is NOT directed to receiving any direct monetary
105254Sksewell@umich.edu# compensation for, or commercial advantage from such use.  Illustrative
115254Sksewell@umich.edu# examples of non-commercial use are academic research, personal study,
125254Sksewell@umich.edu# teaching, education and corporate research & development.
135254Sksewell@umich.edu# Illustrative examples of commercial use are distributing products for
145254Sksewell@umich.edu# commercial advantage and providing services using the software for
155222Sksewell@umich.edu# commercial advantage.
165254Sksewell@umich.edu#
175254Sksewell@umich.edu# If you wish to use this software or functionality therein that may be
185254Sksewell@umich.edu# covered by patents for commercial use, please contact:
195254Sksewell@umich.edu#     Director of Intellectual Property Licensing
205254Sksewell@umich.edu#     Office of Strategy and Technology
215254Sksewell@umich.edu#     Hewlett-Packard Company
225254Sksewell@umich.edu#     1501 Page Mill Road
235254Sksewell@umich.edu#     Palo Alto, California  94304
245254Sksewell@umich.edu#
255254Sksewell@umich.edu# Redistributions of source code must retain the above copyright notice,
265254Sksewell@umich.edu# this list of conditions and the following disclaimer.  Redistributions
275222Sksewell@umich.edu# in binary form must reproduce the above copyright notice, this list of
285254Sksewell@umich.edu# conditions and the following disclaimer in the documentation and/or
295222Sksewell@umich.edu# other materials provided with the distribution.  Neither the name of
305222Sksewell@umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
3111793Sbrandon.potter@amd.com# contributors may be used to endorse or promote products derived from
3211793Sbrandon.potter@amd.com# this software without specific prior written permission.  No right of
335222Sksewell@umich.edu# sublicense is granted herewith.  Derivatives of the software and
345222Sksewell@umich.edu# output created using the software may be prepared, but only for
355222Sksewell@umich.edu# Non-Commercial Uses.  Derivatives of the software may be shared with
365222Sksewell@umich.edu# others provided: (i) the others agree to abide by the list of
375222Sksewell@umich.edu# conditions herein which includes the Non-Commercial Use restrictions;
385222Sksewell@umich.edu# and (ii) such Derivatives of the software include the above copyright
395222Sksewell@umich.edu# notice to acknowledge the contribution from this software where
405222Sksewell@umich.edu# applicable, this list of conditions and the disclaimer below.
418799Sgblack@eecs.umich.edu#
425222Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
435222Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
445222Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
455222Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
466378Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
476378Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
485222Sksewell@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
495222Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
505222Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
515222Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
525222Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
535222Sksewell@umich.edu#
545222Sksewell@umich.edu# Authors: Gabe Black
555222Sksewell@umich.edu
565222Sksewell@umich.educategories = ["convert_floating_point_to_floating_point",
575222Sksewell@umich.edu              "convert_floating_point_to_xmm_integer",
588852Sandreas.hansson@arm.com              "convert_floating_point_to_mmx_integer",
5913893Sgabeblack@google.com              "convert_floating_point_to_gpr_integer"]
605222Sksewell@umich.edu
615222Sksewell@umich.edumicrocode = '''
625222Sksewell@umich.edu# SSE instructions
635222Sksewell@umich.edu'''
645222Sksewell@umich.edufor category in categories:
655222Sksewell@umich.edu    exec "import %s as cat" % category
665222Sksewell@umich.edu    microcode += cat.microcode
675222Sksewell@umich.edu