extract_and_insert.py revision 6591:3d1ea9362fe5
15323Sgblack@eecs.umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 22934Sktlim@umich.edu# All rights reserved. 32934Sktlim@umich.edu# 42934Sktlim@umich.edu# Redistribution and use of this software in source and binary forms, 52934Sktlim@umich.edu# with or without modification, are permitted provided that the 62934Sktlim@umich.edu# following conditions are met: 72934Sktlim@umich.edu# 82934Sktlim@umich.edu# The software must be used only for Non-Commercial Use which means any 92934Sktlim@umich.edu# use which is NOT directed to receiving any direct monetary 102934Sktlim@umich.edu# compensation for, or commercial advantage from such use. Illustrative 112934Sktlim@umich.edu# examples of non-commercial use are academic research, personal study, 122934Sktlim@umich.edu# teaching, education and corporate research & development. 132934Sktlim@umich.edu# Illustrative examples of commercial use are distributing products for 142934Sktlim@umich.edu# commercial advantage and providing services using the software for 152934Sktlim@umich.edu# commercial advantage. 162934Sktlim@umich.edu# 172934Sktlim@umich.edu# If you wish to use this software or functionality therein that may be 182934Sktlim@umich.edu# covered by patents for commercial use, please contact: 192934Sktlim@umich.edu# Director of Intellectual Property Licensing 202934Sktlim@umich.edu# Office of Strategy and Technology 212934Sktlim@umich.edu# Hewlett-Packard Company 222934Sktlim@umich.edu# 1501 Page Mill Road 232934Sktlim@umich.edu# Palo Alto, California 94304 242934Sktlim@umich.edu# 252934Sktlim@umich.edu# Redistributions of source code must retain the above copyright notice, 262934Sktlim@umich.edu# this list of conditions and the following disclaimer. Redistributions 272934Sktlim@umich.edu# in binary form must reproduce the above copyright notice, this list of 282934Sktlim@umich.edu# conditions and the following disclaimer in the documentation and/or 292934Sktlim@umich.edu# other materials provided with the distribution. Neither the name of 302969Sktlim@umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 312934Sktlim@umich.edu# contributors may be used to endorse or promote products derived from 322995Ssaidi@eecs.umich.edu# this software without specific prior written permission. No right of 332934Sktlim@umich.edu# sublicense is granted herewith. Derivatives of the software and 342934Sktlim@umich.edu# output created using the software may be prepared, but only for 352934Sktlim@umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 362934Sktlim@umich.edu# others provided: (i) the others agree to abide by the list of 372934Sktlim@umich.edu# conditions herein which includes the Non-Commercial Use restrictions; 382934Sktlim@umich.edu# and (ii) such Derivatives of the software include the above copyright 392934Sktlim@umich.edu# notice to acknowledge the contribution from this software where 402934Sktlim@umich.edu# applicable, this list of conditions and the disclaimer below. 414520Ssaidi@eecs.umich.edu# 424520Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 434982Ssaidi@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 444520Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 454520Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 462934Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 472934Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 483005Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 493005Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 503304Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 512995Ssaidi@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 522934Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 532934Sktlim@umich.edu# 544965Ssaidi@eecs.umich.edu# Authors: Gabe Black 555266Sksewell@umich.edu 562934Sktlim@umich.edumicrocode = ''' 572934Sktlim@umich.edudef macroop PEXTRW_R_XMM_I { 582934Sktlim@umich.edu mov2int reg, xmmlm, "IMMEDIATE & mask(3)", size=2, ext=1 592934Sktlim@umich.edu mov2int reg, xmmhm, "IMMEDIATE & mask(3)", size=2, ext=1 602934Sktlim@umich.edu}; 612995Ssaidi@eecs.umich.edu 622934Sktlim@umich.edudef macroop PINSRW_XMM_R_I { 632934Sktlim@umich.edu mov2fp xmml, regm, "IMMEDIATE & mask(3)", size=2, ext=1 642934Sktlim@umich.edu mov2fp xmmh, regm, "IMMEDIATE & mask(3)", size=2, ext=1 652934Sktlim@umich.edu}; 662934Sktlim@umich.edu 672995Ssaidi@eecs.umich.edudef macroop PINSRW_XMM_M_I { 682934Sktlim@umich.edu ld t1, seg, sib, disp, dataSize=2 692934Sktlim@umich.edu mov2fp xmml, t1, "IMMEDIATE & mask(3)", size=2, ext=1 702953Sktlim@umich.edu mov2fp xmmh, t1, "IMMEDIATE & mask(3)", size=2, ext=1 714094Sbinkertn@umich.edu}; 722934Sktlim@umich.edu 733449Shsul@eecs.umich.edudef macroop PINSRW_XMM_P_I { 742934Sktlim@umich.edu rdip t7 752934Sktlim@umich.edu ld t1, seg, riprel, disp, dataSize=2 762934Sktlim@umich.edu mov2fp xmml, t1, "IMMEDIATE & mask(3)", size=2, ext=1 772934Sktlim@umich.edu mov2fp xmmh, t1, "IMMEDIATE & mask(3)", size=2, ext=1 782934Sktlim@umich.edu}; 793584Ssaidi@eecs.umich.edu''' 804486Sbinkertn@umich.edu