convert_gpr_integer_to_floating_point.py (5081:2ccce8600a9d) convert_gpr_integer_to_floating_point.py (6518:1ad4a7774b3c)
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 = '''
57# CVTSI2SS
58
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 = '''
57# CVTSI2SS
58
59def macroop CVTSI2SD_R_R {
59def macroop CVTSI2SD_XMM_R {
60 cvtf_i2d xmml, regm
61};
62
60 cvtf_i2d xmml, regm
61};
62
63def macroop CVTSI2SD_R_M {
63def macroop CVTSI2SD_XMM_M {
64 ld t1, seg, sib, disp
65 cvtf_i2d xmml, t1
66};
67
64 ld t1, seg, sib, disp
65 cvtf_i2d xmml, t1
66};
67
68def macroop CVTSI2SD_R_P {
68def macroop CVTSI2SD_XMM_P {
69 rdip t7
70 ld t1, seg, riprel, disp
71 cvtf_i2d xmml, t1
72};
73'''
69 rdip t7
70 ld t1, seg, riprel, disp
71 cvtf_i2d xmml, t1
72};
73'''