left_logical_shift.py (5081:2ccce8600a9d) left_logical_shift.py (6584:5355f44912f6)
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 = '''
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 = '''
57# PSLLW
58# PSLLD
59# PSLLQ
57def macroop PSLLW_MMX_MMX {
58 msll mmx, mmx, mmxm, size=2, ext=0
59};
60
61def macroop PSLLW_MMX_M {
62 ldfp ufp1, seg, sib, disp, dataSize=8
63 msll mmx, mmx, ufp1, size=2, ext=0
64};
65
66def macroop PSLLW_MMX_P {
67 rdip t7
68 ldfp ufp1, seg, riprel, disp, dataSize=8
69 msll mmx, mmx, ufp1, size=2, ext=0
70};
71
72def macroop PSLLW_MMX_I {
73 mslli mmx, mmx, imm, size=2, ext=0
74};
75
76def macroop PSLLD_MMX_MMX {
77 msll mmx, mmx, mmxm, size=4, ext=0
78};
79
80def macroop PSLLD_MMX_M {
81 ldfp ufp1, seg, sib, disp, dataSize=8
82 msll mmx, mmx, ufp1, size=4, ext=0
83};
84
85def macroop PSLLD_MMX_P {
86 rdip t7
87 ldfp ufp1, seg, riprel, disp, dataSize=8
88 msll mmx, mmx, ufp1, size=4, ext=0
89};
90
91def macroop PSLLD_MMX_I {
92 mslli mmx, mmx, imm, size=4, ext=0
93};
94
95def macroop PSLLQ_MMX_MMX {
96 msll mmx, mmx, mmxm, size=8, ext=0
97};
98
99def macroop PSLLQ_MMX_M {
100 ldfp ufp1, seg, sib, disp, dataSize=8
101 msll mmx, mmx, ufp1, size=8, ext=0
102};
103
104def macroop PSLLQ_MMX_P {
105 rdip t7
106 ldfp ufp1, seg, riprel, disp, dataSize=8
107 msll mmx, mmx, ufp1, size=8, ext=0
108};
109
110def macroop PSLLQ_MMX_I {
111 mslli mmx, mmx, imm, size=8, ext=0
112};
60'''
113'''