move_mask.py revision 6593:f27fd3c3a153
12068SN/A# Copyright (c) 2007 The Hewlett-Packard Development Company
22068SN/A# All rights reserved.
32068SN/A#
42068SN/A# Redistribution and use of this software in source and binary forms,
52068SN/A# with or without modification, are permitted provided that the
62068SN/A# following conditions are met:
72068SN/A#
82068SN/A# The software must be used only for Non-Commercial Use which means any
92068SN/A# use which is NOT directed to receiving any direct monetary
102068SN/A# compensation for, or commercial advantage from such use.  Illustrative
112068SN/A# examples of non-commercial use are academic research, personal study,
122068SN/A# teaching, education and corporate research & development.
132068SN/A# Illustrative examples of commercial use are distributing products for
142068SN/A# commercial advantage and providing services using the software for
152068SN/A# commercial advantage.
162068SN/A#
172068SN/A# If you wish to use this software or functionality therein that may be
182068SN/A# covered by patents for commercial use, please contact:
192068SN/A#     Director of Intellectual Property Licensing
202068SN/A#     Office of Strategy and Technology
212068SN/A#     Hewlett-Packard Company
222068SN/A#     1501 Page Mill Road
232068SN/A#     Palo Alto, California  94304
242068SN/A#
252068SN/A# Redistributions of source code must retain the above copyright notice,
262068SN/A# this list of conditions and the following disclaimer.  Redistributions
272068SN/A# in binary form must reproduce the above copyright notice, this list of
282665Ssaidi@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or
292665Ssaidi@eecs.umich.edu# other materials provided with the distribution.  Neither the name of
302068SN/A# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its
312649Ssaidi@eecs.umich.edu# contributors may be used to endorse or promote products derived from
322649Ssaidi@eecs.umich.edu# this software without specific prior written permission.  No right of
332649Ssaidi@eecs.umich.edu# sublicense is granted herewith.  Derivatives of the software and
342649Ssaidi@eecs.umich.edu# output created using the software may be prepared, but only for
352649Ssaidi@eecs.umich.edu# Non-Commercial Uses.  Derivatives of the software may be shared with
362068SN/A# others provided: (i) the others agree to abide by the list of
372068SN/A# conditions herein which includes the Non-Commercial Use restrictions;
382068SN/A# and (ii) such Derivatives of the software include the above copyright
392068SN/A# notice to acknowledge the contribution from this software where
402068SN/A# applicable, this list of conditions and the disclaimer below.
412068SN/A#
422068SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
432068SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
442068SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
452068SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
462068SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
472227SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
482068SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
492068SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
502068SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
512068SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
522068SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
532068SN/A#
542068SN/A# Authors: Gabe Black
552068SN/A
562068SN/Amicrocode = '''
572068SN/Adef macroop PMOVMSKB_R_XMM {
582068SN/A    limm reg, 0
592068SN/A    movsign reg, xmmlm, size=1, ext=0
602068SN/A    movsign reg, xmmhm, size=1, ext=1
612068SN/A};
622068SN/A'''
632068SN/A