pand.py revision 6542:059e35b593a8
13388Sgblack@eecs.umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 23388Sgblack@eecs.umich.edu# All rights reserved. 33388Sgblack@eecs.umich.edu# 43388Sgblack@eecs.umich.edu# Redistribution and use of this software in source and binary forms, 53388Sgblack@eecs.umich.edu# with or without modification, are permitted provided that the 63388Sgblack@eecs.umich.edu# following conditions are met: 73388Sgblack@eecs.umich.edu# 83388Sgblack@eecs.umich.edu# The software must be used only for Non-Commercial Use which means any 93388Sgblack@eecs.umich.edu# use which is NOT directed to receiving any direct monetary 103388Sgblack@eecs.umich.edu# compensation for, or commercial advantage from such use. Illustrative 113388Sgblack@eecs.umich.edu# examples of non-commercial use are academic research, personal study, 123388Sgblack@eecs.umich.edu# teaching, education and corporate research & development. 133388Sgblack@eecs.umich.edu# Illustrative examples of commercial use are distributing products for 143388Sgblack@eecs.umich.edu# commercial advantage and providing services using the software for 153388Sgblack@eecs.umich.edu# commercial advantage. 163388Sgblack@eecs.umich.edu# 173388Sgblack@eecs.umich.edu# If you wish to use this software or functionality therein that may be 183388Sgblack@eecs.umich.edu# covered by patents for commercial use, please contact: 193388Sgblack@eecs.umich.edu# Director of Intellectual Property Licensing 203388Sgblack@eecs.umich.edu# Office of Strategy and Technology 213388Sgblack@eecs.umich.edu# Hewlett-Packard Company 223388Sgblack@eecs.umich.edu# 1501 Page Mill Road 233388Sgblack@eecs.umich.edu# Palo Alto, California 94304 243388Sgblack@eecs.umich.edu# 253388Sgblack@eecs.umich.edu# Redistributions of source code must retain the above copyright notice, 263388Sgblack@eecs.umich.edu# this list of conditions and the following disclaimer. Redistributions 273388Sgblack@eecs.umich.edu# in binary form must reproduce the above copyright notice, this list of 283388Sgblack@eecs.umich.edu# conditions and the following disclaimer in the documentation and/or 293388Sgblack@eecs.umich.edu# other materials provided with the distribution. Neither the name of 303388Sgblack@eecs.umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 313388Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 323388Sgblack@eecs.umich.edu# this software without specific prior written permission. No right of 333388Sgblack@eecs.umich.edu# sublicense is granted herewith. Derivatives of the software and 343388Sgblack@eecs.umich.edu# output created using the software may be prepared, but only for 353388Sgblack@eecs.umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 363441Sgblack@eecs.umich.edu# others provided: (i) the others agree to abide by the list of 373441Sgblack@eecs.umich.edu# conditions herein which includes the Non-Commercial Use restrictions; 383441Sgblack@eecs.umich.edu# and (ii) such Derivatives of the software include the above copyright 393441Sgblack@eecs.umich.edu# notice to acknowledge the contribution from this software where 403441Sgblack@eecs.umich.edu# applicable, this list of conditions and the disclaimer below. 413441Sgblack@eecs.umich.edu# 423441Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 433441Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 443441Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 453441Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 463441Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 473441Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 483441Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 493441Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 503441Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 513441Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 523441Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 533441Sgblack@eecs.umich.edu# 543441Sgblack@eecs.umich.edu# Authors: Gabe Black 553441Sgblack@eecs.umich.edu 563441Sgblack@eecs.umich.edumicrocode = ''' 573441Sgblack@eecs.umich.edudef macroop PAND_XMM_XMM { 583441Sgblack@eecs.umich.edu mand xmml, xmml, xmmlm 593441Sgblack@eecs.umich.edu mand xmmh, xmmh, xmmhm 603441Sgblack@eecs.umich.edu}; 613441Sgblack@eecs.umich.edu 623441Sgblack@eecs.umich.edudef macroop PAND_XMM_M { 633441Sgblack@eecs.umich.edu lea t1, seg, sib, disp, dataSize=asz 643441Sgblack@eecs.umich.edu ldfp ufp1, seg, [1, t0, t1], dataSize=8 653441Sgblack@eecs.umich.edu ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8 663441Sgblack@eecs.umich.edu mand xmml, xmml, ufp1 673441Sgblack@eecs.umich.edu mand xmmh, xmmh, ufp2 683441Sgblack@eecs.umich.edu}; 693441Sgblack@eecs.umich.edu 703441Sgblack@eecs.umich.edudef macroop PAND_XMM_P { 713441Sgblack@eecs.umich.edu rdip t7 723441Sgblack@eecs.umich.edu lea t1, seg, riprel, disp, dataSize=asz 733441Sgblack@eecs.umich.edu ldfp ufp1, seg, [1, t0, t1], dataSize=8 743441Sgblack@eecs.umich.edu ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8 753441Sgblack@eecs.umich.edu mand xmml, xmml, ufp1 763441Sgblack@eecs.umich.edu mand xmmh, xmmh, ufp2 773441Sgblack@eecs.umich.edu}; 783441Sgblack@eecs.umich.edu 793627Sgblack@eecs.umich.edudef macroop PANDN_XMM_XMM { 803441Sgblack@eecs.umich.edu mandn xmml, xmml, xmmlm 813441Sgblack@eecs.umich.edu mandn xmmh, xmmh, xmmhm 823627Sgblack@eecs.umich.edu}; 833441Sgblack@eecs.umich.edu 843627Sgblack@eecs.umich.edudef macroop PANDN_XMM_M { 853441Sgblack@eecs.umich.edu lea t1, seg, sib, disp, dataSize=asz 863441Sgblack@eecs.umich.edu ldfp ufp1, seg, [1, t0, t1], dataSize=8 873627Sgblack@eecs.umich.edu ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8 883627Sgblack@eecs.umich.edu mandn xmml, xmml, ufp1 893627Sgblack@eecs.umich.edu mandn xmmh, xmmh, ufp2 903627Sgblack@eecs.umich.edu}; 913627Sgblack@eecs.umich.edu 923627Sgblack@eecs.umich.edudef macroop PANDN_XMM_P { 933627Sgblack@eecs.umich.edu rdip t7 943627Sgblack@eecs.umich.edu lea t1, seg, riprel, disp, dataSize=asz 953441Sgblack@eecs.umich.edu ldfp ufp1, seg, [1, t0, t1], dataSize=8 963441Sgblack@eecs.umich.edu ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8 973441Sgblack@eecs.umich.edu mandn xmml, xmml, ufp1 983627Sgblack@eecs.umich.edu mandn xmmh, xmmh, ufp2 993441Sgblack@eecs.umich.edu}; 1003441Sgblack@eecs.umich.edu''' 1013441Sgblack@eecs.umich.edu