convert_gpr_integer_to_floating_point.py (6563:2c5b80c75da7) convert_gpr_integer_to_floating_point.py (6799:36131e4dfb6e)
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

--- 42 unchanged lines hidden (view full) ---

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
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

--- 42 unchanged lines hidden (view full) ---

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
59 cvti2f xmml, ufp1, srcSize=dsz, destSize=4, ext=Scalar
60};
61
62def macroop CVTSI2SS_XMM_M {
63 ldfp ufp1, seg, sib, disp, dataSize=8
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
64 cvti2f xmml, ufp1, srcSize=dsz, destSize=4, ext=Scalar
65};
66
67def macroop CVTSI2SS_XMM_P {
68 rdip t7
69 ldfp ufp1, seg, riprel, disp, dataSize=8
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
70 cvti2f xmml, ufp1, srcSize=dsz, destSize=4, ext=Scalar
71};
72
73def macroop CVTSI2SD_XMM_R {
74 mov2fp ufp1, regm, destSize=dsz, srcSize=dsz
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
75 cvti2f xmml, ufp1, srcSize=dsz, destSize=8, ext=Scalar
76};
77
78def macroop CVTSI2SD_XMM_M {
79 ldfp ufp1, seg, sib, disp, dataSize=8
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
80 cvti2f xmml, ufp1, srcSize=dsz, destSize=8, ext=Scalar
81};
82
83def macroop CVTSI2SD_XMM_P {
84 rdip t7
85 ldfp ufp1, seg, riprel, disp, dataSize=8
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
86 cvti2f xmml, ufp1, srcSize=dsz, destSize=8, ext=Scalar
87};
88'''
87};
88'''