1# Copyright (c) 2007 The Hewlett-Packard Development Company 2# All rights reserved. 3# 4# Redistribution and use of this software in source and binary forms, 5# with or without modification, are permitted provided that the 6# following conditions are met: 7# 8# The software must be used only for Non-Commercial Use which means any --- 40 unchanged lines hidden (view full) --- 49# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 50# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 51# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 52# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 53# 54# Authors: Gabe Black 55 56microcode = ''' |
57def macroop CVTSI2SS_XMM_R { 58 mov2fp ufp1, regm, destSize=dsz, srcSize=dsz 59 cvti2f xmml, ufp1, srcSize=dsz, destSize=4, ext=1 60}; |
61 |
62def macroop CVTSI2SS_XMM_M { 63 ldfp ufp1, seg, sib, disp, dataSize=8 64 cvti2f xmml, ufp1, srcSize=dsz, destSize=4, ext=1 65}; 66 67def macroop CVTSI2SS_XMM_P { 68 rdip t7 69 ldfp ufp1, seg, riprel, disp, dataSize=8 70 cvti2f xmml, ufp1, srcSize=dsz, destSize=4, ext=1 71}; 72 |
73def macroop CVTSI2SD_XMM_R { |
74 mov2fp ufp1, regm, destSize=dsz, srcSize=dsz 75 cvti2f xmml, ufp1, srcSize=dsz, destSize=8, ext=1 |
76}; 77 78def macroop CVTSI2SD_XMM_M { |
79 ldfp ufp1, seg, sib, disp, dataSize=8 80 cvti2f xmml, ufp1, srcSize=dsz, destSize=8, ext=1 |
81}; 82 83def macroop CVTSI2SD_XMM_P { 84 rdip t7 |
85 ldfp ufp1, seg, riprel, disp, dataSize=8 86 cvti2f xmml, ufp1, srcSize=dsz, destSize=8, ext=1 |
87}; 88''' |