__init__.py revision 5081:2ccce8600a9d
110259SAndrew.Bardsley@arm.com# Copyright (c) 2007 The Hewlett-Packard Development Company
210259SAndrew.Bardsley@arm.com# All rights reserved.
310259SAndrew.Bardsley@arm.com#
410259SAndrew.Bardsley@arm.com# Redistribution and use of this software in source and binary forms,
510259SAndrew.Bardsley@arm.com# with or without modification, are permitted provided that the
610259SAndrew.Bardsley@arm.com# following conditions are met:
710259SAndrew.Bardsley@arm.com#
810259SAndrew.Bardsley@arm.com# The software must be used only for Non-Commercial Use which means any
910259SAndrew.Bardsley@arm.com# use which is NOT directed to receiving any direct monetary
1010259SAndrew.Bardsley@arm.com# compensation for, or commercial advantage from such use.  Illustrative
1110259SAndrew.Bardsley@arm.com# examples of non-commercial use are academic research, personal study,
1210259SAndrew.Bardsley@arm.com# teaching, education and corporate research & development.
1310259SAndrew.Bardsley@arm.com# Illustrative examples of commercial use are distributing products for
1410259SAndrew.Bardsley@arm.com# commercial advantage and providing services using the software for
1510259SAndrew.Bardsley@arm.com# commercial advantage.
1610259SAndrew.Bardsley@arm.com#
1710259SAndrew.Bardsley@arm.com# If you wish to use this software or functionality therein that may be
1810259SAndrew.Bardsley@arm.com# covered by patents for commercial use, please contact:
1910259SAndrew.Bardsley@arm.com#     Director of Intellectual Property Licensing
2010259SAndrew.Bardsley@arm.com#     Office of Strategy and Technology
2110259SAndrew.Bardsley@arm.com#     Hewlett-Packard Company
2210259SAndrew.Bardsley@arm.com#     1501 Page Mill Road
2310259SAndrew.Bardsley@arm.com#     Palo Alto, California  94304
2410259SAndrew.Bardsley@arm.com#
2510259SAndrew.Bardsley@arm.com# Redistributions of source code must retain the above copyright notice,
2610259SAndrew.Bardsley@arm.com# this list of conditions and the following disclaimer.  Redistributions
2710259SAndrew.Bardsley@arm.com# in binary form must reproduce the above copyright notice, this list of
2810259SAndrew.Bardsley@arm.com# conditions and the following disclaimer in the documentation and/or
2910259SAndrew.Bardsley@arm.com# other materials provided with the distribution.  Neither the name of
3010259SAndrew.Bardsley@arm.com# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
3110259SAndrew.Bardsley@arm.com# contributors may be used to endorse or promote products derived from
3210259SAndrew.Bardsley@arm.com# this software without specific prior written permission.  No right of
3310259SAndrew.Bardsley@arm.com# sublicense is granted herewith.  Derivatives of the software and
3410259SAndrew.Bardsley@arm.com# output created using the software may be prepared, but only for
3510259SAndrew.Bardsley@arm.com# Non-Commercial Uses.  Derivatives of the software may be shared with
3610259SAndrew.Bardsley@arm.com# others provided: (i) the others agree to abide by the list of
3710259SAndrew.Bardsley@arm.com# conditions herein which includes the Non-Commercial Use restrictions;
3810259SAndrew.Bardsley@arm.com# and (ii) such Derivatives of the software include the above copyright
3910259SAndrew.Bardsley@arm.com# notice to acknowledge the contribution from this software where
4010259SAndrew.Bardsley@arm.com# applicable, this list of conditions and the disclaimer below.
4110259SAndrew.Bardsley@arm.com#
4210259SAndrew.Bardsley@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4310259SAndrew.Bardsley@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4410259SAndrew.Bardsley@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4510259SAndrew.Bardsley@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4610259SAndrew.Bardsley@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4710259SAndrew.Bardsley@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4810259SAndrew.Bardsley@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4910259SAndrew.Bardsley@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
5010259SAndrew.Bardsley@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5110259SAndrew.Bardsley@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5210259SAndrew.Bardsley@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5310259SAndrew.Bardsley@arm.com#
5410259SAndrew.Bardsley@arm.com# Authors: Gabe Black
5510259SAndrew.Bardsley@arm.com
5610259SAndrew.Bardsley@arm.comcategories = ["compare_and_write_mask",
5710259SAndrew.Bardsley@arm.com              "compare_and_write_minimum_or_maximum",
5810259SAndrew.Bardsley@arm.com              "compare_and_write_rflags"]
5910259SAndrew.Bardsley@arm.com
6010259SAndrew.Bardsley@arm.commicrocode = '''
6110259SAndrew.Bardsley@arm.com# SSE instructions
6210259SAndrew.Bardsley@arm.com'''
6310259SAndrew.Bardsley@arm.comfor category in categories:
6410259SAndrew.Bardsley@arm.com    exec "import %s as cat" % category
6510259SAndrew.Bardsley@arm.com    microcode += cat.microcode
6610259SAndrew.Bardsley@arm.com