__init__.py revision 5081
19380SAndreas.Sandberg@ARM.com# Copyright (c) 2007 The Hewlett-Packard Development Company 25703Ssaidi@eecs.umich.edu# All rights reserved. 35703Ssaidi@eecs.umich.edu# 49380SAndreas.Sandberg@ARM.com# Redistribution and use of this software in source and binary forms, 59380SAndreas.Sandberg@ARM.com# with or without modification, are permitted provided that the 69380SAndreas.Sandberg@ARM.com# following conditions are met: 79380SAndreas.Sandberg@ARM.com# 89380SAndreas.Sandberg@ARM.com# The software must be used only for Non-Commercial Use which means any 99380SAndreas.Sandberg@ARM.com# use which is NOT directed to receiving any direct monetary 109380SAndreas.Sandberg@ARM.com# compensation for, or commercial advantage from such use. Illustrative 119380SAndreas.Sandberg@ARM.com# examples of non-commercial use are academic research, personal study, 129380SAndreas.Sandberg@ARM.com# teaching, education and corporate research & development. 135703Ssaidi@eecs.umich.edu# Illustrative examples of commercial use are distributing products for 145703Ssaidi@eecs.umich.edu# commercial advantage and providing services using the software for 155703Ssaidi@eecs.umich.edu# commercial advantage. 165703Ssaidi@eecs.umich.edu# 175703Ssaidi@eecs.umich.edu# If you wish to use this software or functionality therein that may be 185703Ssaidi@eecs.umich.edu# covered by patents for commercial use, please contact: 195703Ssaidi@eecs.umich.edu# Director of Intellectual Property Licensing 205703Ssaidi@eecs.umich.edu# Office of Strategy and Technology 215703Ssaidi@eecs.umich.edu# Hewlett-Packard Company 225703Ssaidi@eecs.umich.edu# 1501 Page Mill Road 235703Ssaidi@eecs.umich.edu# Palo Alto, California 94304 245703Ssaidi@eecs.umich.edu# 255703Ssaidi@eecs.umich.edu# Redistributions of source code must retain the above copyright notice, 265703Ssaidi@eecs.umich.edu# this list of conditions and the following disclaimer. Redistributions 275703Ssaidi@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of 285703Ssaidi@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or 295703Ssaidi@eecs.umich.edu# other materials provided with the distribution. Neither the name of 305703Ssaidi@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 315703Ssaidi@eecs.umich.edu# contributors may be used to endorse or promote products derived from 325703Ssaidi@eecs.umich.edu# this software without specific prior written permission. No right of 335703Ssaidi@eecs.umich.edu# sublicense is granted herewith. Derivatives of the software and 345703Ssaidi@eecs.umich.edu# output created using the software may be prepared, but only for 355703Ssaidi@eecs.umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 369380SAndreas.Sandberg@ARM.com# others provided: (i) the others agree to abide by the list of 375703Ssaidi@eecs.umich.edu# conditions herein which includes the Non-Commercial Use restrictions; 385703Ssaidi@eecs.umich.edu# and (ii) such Derivatives of the software include the above copyright 399380SAndreas.Sandberg@ARM.com# notice to acknowledge the contribution from this software where 405703Ssaidi@eecs.umich.edu# applicable, this list of conditions and the disclaimer below. 419380SAndreas.Sandberg@ARM.com# 4211837Swendy.elsasser@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 439380SAndreas.Sandberg@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 44# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 45# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 46# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 47# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 48# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 49# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 50# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 51# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 52# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 53# 54# Authors: Gabe Black 55 56categories = ["addition", 57 "horizontal_addition", 58 "subtraction", 59 "horizontal_subtraction", 60 "simultaneous_addition_and_subtraction", 61 "multiplication", 62 "division", 63 "square_root", 64 "reciprocal_square_root", 65 "reciprocal_estimation"] 66 67microcode = ''' 68# SSE instructions 69''' 70for category in categories: 71 exec "import %s as cat" % category 72 microcode += cat.microcode 73