__init__.py revision 7087:fb8d5786ff30
13537Sgblack@eecs.umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company
23537Sgblack@eecs.umich.edu# All rights reserved.
33537Sgblack@eecs.umich.edu#
43537Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
53537Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
63537Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
73537Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
83537Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
93537Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
103537Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
113537Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
123537Sgblack@eecs.umich.edu#
133537Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
143537Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
153537Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
163537Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
173537Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
183537Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
193537Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
203537Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
213537Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
223537Sgblack@eecs.umich.edu# this software without specific prior written permission.
233537Sgblack@eecs.umich.edu#
243537Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
253537Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
263537Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
274103Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
284103Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
294103Ssaidi@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
303537Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
313537Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
323537Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
333537Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
343537Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
353537Sgblack@eecs.umich.edu#
364103Ssaidi@eecs.umich.edu# Authors: Gabe Black
373827Shsul@eecs.umich.edu
385647Sgblack@eecs.umich.educategories = ["andp",
395647Sgblack@eecs.umich.edu              "orp",
403827Shsul@eecs.umich.edu              "exclusive_or"]
413537Sgblack@eecs.umich.edu
423537Sgblack@eecs.umich.edumicrocode = '''
433894Shsul@eecs.umich.edu# SSE instructions
445647Sgblack@eecs.umich.edu'''
454009Ssaidi@eecs.umich.edufor category in categories:
464009Ssaidi@eecs.umich.edu    exec "import %s as cat" % category
474009Ssaidi@eecs.umich.edu    microcode += cat.microcode
484103Ssaidi@eecs.umich.edu