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
60# PSLLDQ
57def macroop PSLLW_XMM_XMM {
58 msll xmmh, xmmh, xmmlm, size=2, ext=0
59 msll xmml, xmml, xmmlm, size=2, ext=0
60};
61
62def macroop PSLLW_XMM_M {
63 ldfp ufp1, seg, sib, disp, dataSize=8
64 msll xmml, xmml, ufp1, size=2, ext=0
65 msll xmmh, xmmh, ufp1, size=2, ext=0
66};
67
68def macroop PSLLW_XMM_P {
69 rdip t7
70 ldfp ufp1, seg, riprel, disp, dataSize=8
71 msll xmml, xmml, ufp1, size=2, ext=0
72 msll xmmh, xmmh, ufp1, size=2, ext=0
73};
74
75def macroop PSLLW_XMM_I {
76 mslli xmml, xmml, imm, size=2, ext=0
77 mslli xmmh, xmmh, imm, size=2, ext=0
78};
79
80def macroop PSLLD_XMM_XMM {
81 msll xmmh, xmmh, xmmlm, size=4, ext=0
82 msll xmml, xmml, xmmlm, size=4, ext=0
83};
84
85def macroop PSLLD_XMM_M {
86 ldfp ufp1, seg, sib, disp, dataSize=8
87 msll xmml, xmml, ufp1, size=4, ext=0
88 msll xmmh, xmmh, ufp1, size=4, ext=0
89};
90
91def macroop PSLLD_XMM_P {
92 rdip t7
93 ldfp ufp1, seg, riprel, disp, dataSize=8
94 msll xmml, xmml, ufp1, size=4, ext=0
95 msll xmmh, xmmh, ufp1, size=4, ext=0
96};
97
98def macroop PSLLD_XMM_I {
99 mslli xmml, xmml, imm, size=4, ext=0
100 mslli xmmh, xmmh, imm, size=4, ext=0
101};
102
103def macroop PSLLQ_XMM_XMM {
104 msll xmmh, xmmh, xmmlm, size=8, ext=0
105 msll xmml, xmml, xmmlm, size=8, ext=0
106};
107
108def macroop PSLLQ_XMM_M {
109 ldfp ufp1, seg, sib, disp, dataSize=8
110 msll xmml, xmml, ufp1, size=8, ext=0
111 msll xmmh, xmmh, ufp1, size=8, ext=0
112};
113
114def macroop PSLLQ_XMM_P {
115 rdip t7
116 ldfp ufp1, seg, riprel, disp, dataSize=8
117 msll xmml, xmml, ufp1, size=8, ext=0
118 msll xmmh, xmmh, ufp1, size=8, ext=0
119};
120
121def macroop PSLLQ_XMM_I {
122 mslli xmml, xmml, imm, size=8, ext=0
123 mslli xmmh, xmmh, imm, size=8, ext=0
124};
61'''
125'''
126# PSLLDQ