move.py revision 6544:406ad51ece90
11049Sbinkertn@umich.edu# Copyright (c) 2007 The Hewlett-Packard Development Company 21049Sbinkertn@umich.edu# All rights reserved. 31049Sbinkertn@umich.edu# 41049Sbinkertn@umich.edu# Redistribution and use of this software in source and binary forms, 51049Sbinkertn@umich.edu# with or without modification, are permitted provided that the 61049Sbinkertn@umich.edu# following conditions are met: 71049Sbinkertn@umich.edu# 81049Sbinkertn@umich.edu# The software must be used only for Non-Commercial Use which means any 91049Sbinkertn@umich.edu# use which is NOT directed to receiving any direct monetary 101049Sbinkertn@umich.edu# compensation for, or commercial advantage from such use. Illustrative 111049Sbinkertn@umich.edu# examples of non-commercial use are academic research, personal study, 121049Sbinkertn@umich.edu# teaching, education and corporate research & development. 131049Sbinkertn@umich.edu# Illustrative examples of commercial use are distributing products for 141049Sbinkertn@umich.edu# commercial advantage and providing services using the software for 151049Sbinkertn@umich.edu# commercial advantage. 161049Sbinkertn@umich.edu# 171049Sbinkertn@umich.edu# If you wish to use this software or functionality therein that may be 181049Sbinkertn@umich.edu# covered by patents for commercial use, please contact: 191049Sbinkertn@umich.edu# Director of Intellectual Property Licensing 201049Sbinkertn@umich.edu# Office of Strategy and Technology 211049Sbinkertn@umich.edu# Hewlett-Packard Company 221049Sbinkertn@umich.edu# 1501 Page Mill Road 231049Sbinkertn@umich.edu# Palo Alto, California 94304 241049Sbinkertn@umich.edu# 251049Sbinkertn@umich.edu# Redistributions of source code must retain the above copyright notice, 261049Sbinkertn@umich.edu# this list of conditions and the following disclaimer. Redistributions 271049Sbinkertn@umich.edu# in binary form must reproduce the above copyright notice, this list of 281049Sbinkertn@umich.edu# conditions and the following disclaimer in the documentation and/or 291049Sbinkertn@umich.edu# other materials provided with the distribution. Neither the name of 301049Sbinkertn@umich.edu# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 311049Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from 321049Sbinkertn@umich.edu# this software without specific prior written permission. No right of 331049Sbinkertn@umich.edu# sublicense is granted herewith. Derivatives of the software and 341049Sbinkertn@umich.edu# output created using the software may be prepared, but only for 351049Sbinkertn@umich.edu# Non-Commercial Uses. Derivatives of the software may be shared with 361049Sbinkertn@umich.edu# others provided: (i) the others agree to abide by the list of 371049Sbinkertn@umich.edu# conditions herein which includes the Non-Commercial Use restrictions; 381049Sbinkertn@umich.edu# and (ii) such Derivatives of the software include the above copyright 391049Sbinkertn@umich.edu# notice to acknowledge the contribution from this software where 401049Sbinkertn@umich.edu# applicable, this list of conditions and the disclaimer below. 411049Sbinkertn@umich.edu# 421049Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 431049Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 441049Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 451049Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 461049Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 471049Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 481049Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 491049Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 501049Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 511049Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 521049Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 531049Sbinkertn@umich.edu# 541049Sbinkertn@umich.edu# Authors: Gabe Black 551049Sbinkertn@umich.edu 561049Sbinkertn@umich.edumicrocode = ''' 571049Sbinkertn@umich.edudef macroop MOVD_MMX_R { 581049Sbinkertn@umich.edu mov2fp mmx, regm, srcSize=dsz, destSize=8 591049Sbinkertn@umich.edu}; 601049Sbinkertn@umich.edu 611049Sbinkertn@umich.edudef macroop MOVD_MMX_M { 621049Sbinkertn@umich.edu ldfp mmx, seg, sib, disp, dataSize=8 631049Sbinkertn@umich.edu}; 641049Sbinkertn@umich.edu 651049Sbinkertn@umich.edudef macroop MOVD_MMX_P { 661049Sbinkertn@umich.edu rdip t7 671049Sbinkertn@umich.edu ldfp mmx, seg, riprel, disp, dataSize=8 681049Sbinkertn@umich.edu}; 691049Sbinkertn@umich.edu 701049Sbinkertn@umich.edudef macroop MOVD_R_MMX { 711049Sbinkertn@umich.edu mov2int reg, mmxm, size=dsz 721049Sbinkertn@umich.edu}; 731049Sbinkertn@umich.edu 741049Sbinkertn@umich.edudef macroop MOVD_M_MMX { 751049Sbinkertn@umich.edu stfp mmx, seg, sib, disp, dataSize=8 761049Sbinkertn@umich.edu}; 771049Sbinkertn@umich.edu 781049Sbinkertn@umich.edudef macroop MOVD_P_MMX { 791049Sbinkertn@umich.edu rdip t7 801049Sbinkertn@umich.edu stfp mmx, seg, riprel, disp, dataSize=8 811049Sbinkertn@umich.edu}; 821049Sbinkertn@umich.edu 831049Sbinkertn@umich.edudef macroop MOVQ_MMX_MMX { 841049Sbinkertn@umich.edu movfp mmx, mmxm 851049Sbinkertn@umich.edu}; 861049Sbinkertn@umich.edu 871049Sbinkertn@umich.edudef macroop MOVQ_MMX_M { 881049Sbinkertn@umich.edu ldfp mmx, seg, sib, disp, dataSize=8 891049Sbinkertn@umich.edu}; 901049Sbinkertn@umich.edu 911049Sbinkertn@umich.edudef macroop MOVQ_MMX_P { 921049Sbinkertn@umich.edu rdip t7 931049Sbinkertn@umich.edu ldfp mmx, seg, riprel, disp, dataSize=8 941049Sbinkertn@umich.edu}; 951049Sbinkertn@umich.edu 961049Sbinkertn@umich.edudef macroop MOVQ_M_MMX { 971049Sbinkertn@umich.edu stfp mmx, seg, sib, disp, dataSize=8 981049Sbinkertn@umich.edu}; 991049Sbinkertn@umich.edu 1001049Sbinkertn@umich.edudef macroop MOVQ_P_MMX { 1011049Sbinkertn@umich.edu rdip t7 1021049Sbinkertn@umich.edu stfp mmx, seg, riprel, disp, dataSize=8 1031049Sbinkertn@umich.edu}; 1041049Sbinkertn@umich.edu''' 1051049Sbinkertn@umich.edu# MOVDQ2Q 1061049Sbinkertn@umich.edu# MOVQ2DQ 1071049Sbinkertn@umich.edu