__init__.py revision 7087
17404SAli.Saidi@ARM.com# Copyright (c) 2007 The Hewlett-Packard Development Company 27404SAli.Saidi@ARM.com# All rights reserved. 37404SAli.Saidi@ARM.com# 47404SAli.Saidi@ARM.com# The license below extends only to copyright in the software and shall 57404SAli.Saidi@ARM.com# not be construed as granting a license to any other intellectual 67404SAli.Saidi@ARM.com# property including but not limited to intellectual property relating 77404SAli.Saidi@ARM.com# to a hardware implementation of the functionality of the software 87404SAli.Saidi@ARM.com# licensed hereunder. You may use the software subject to the license 97404SAli.Saidi@ARM.com# terms below provided that you ensure that this notice is replicated 107404SAli.Saidi@ARM.com# unmodified and in its entirety in all distributions of the software, 117404SAli.Saidi@ARM.com# modified or unmodified, in source code or in binary form. 127404SAli.Saidi@ARM.com# 137404SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without 147404SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are 157404SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright 167404SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer; 177404SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright 187404SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the 197404SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution; 207404SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its 217404SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from 227404SAli.Saidi@ARM.com# this software without specific prior written permission. 237404SAli.Saidi@ARM.com# 247404SAli.Saidi@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 257404SAli.Saidi@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 267404SAli.Saidi@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 277404SAli.Saidi@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 287404SAli.Saidi@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 297404SAli.Saidi@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 307404SAli.Saidi@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 317404SAli.Saidi@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 327404SAli.Saidi@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 337404SAli.Saidi@ARM.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 347404SAli.Saidi@ARM.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 357404SAli.Saidi@ARM.com# 367404SAli.Saidi@ARM.com# Authors: Gabe Black 377404SAli.Saidi@ARM.com 387404SAli.Saidi@ARM.comcategories = ["left_logical_shift", 397404SAli.Saidi@ARM.com "right_logical_shift", 407404SAli.Saidi@ARM.com "right_arithmetic_shift"] 417404SAli.Saidi@ARM.com 427404SAli.Saidi@ARM.commicrocode = ''' 437404SAli.Saidi@ARM.com# 128 bit multimedia and scientific instructions 447728SAli.Saidi@ARM.com''' 457404SAli.Saidi@ARM.comfor category in categories: 467748SAli.Saidi@ARM.com exec "import %s as cat" % category 477404SAli.Saidi@ARM.com microcode += cat.microcode 487404SAli.Saidi@ARM.com