right_arithmetic_shift.py (5081:2ccce8600a9d) right_arithmetic_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# PSRAW
58# PSRAD
57def macroop PSRAW_XMM_XMM {
58 msra xmmh, xmmh, xmmlm, size=2, ext=0
59 msra xmml, xmml, xmmlm, size=2, ext=0
60};
61
62def macroop PSRAW_XMM_M {
63 ldfp ufp1, seg, sib, disp, dataSize=8
64 msra xmml, xmml, ufp1, size=2, ext=0
65 msra xmmh, xmmh, ufp1, size=2, ext=0
66};
67
68def macroop PSRAW_XMM_P {
69 rdip t7
70 ldfp ufp1, seg, riprel, disp, dataSize=8
71 msra xmml, xmml, ufp1, size=2, ext=0
72 msra xmmh, xmmh, ufp1, size=2, ext=0
73};
74
75def macroop PSRAW_XMM_I {
76 msrai xmml, xmml, imm, size=2, ext=0
77 msrai xmmh, xmmh, imm, size=2, ext=0
78};
79
80def macroop PSRAD_XMM_XMM {
81 msra xmmh, xmmh, xmmlm, size=4, ext=0
82 msra xmml, xmml, xmmlm, size=4, ext=0
83};
84
85def macroop PSRAD_XMM_M {
86 ldfp ufp1, seg, sib, disp, dataSize=8
87 msra xmml, xmml, ufp1, size=4, ext=0
88 msra xmmh, xmmh, ufp1, size=4, ext=0
89};
90
91def macroop PSRAD_XMM_P {
92 rdip t7
93 ldfp ufp1, seg, riprel, disp, dataSize=8
94 msra xmml, xmml, ufp1, size=4, ext=0
95 msra xmmh, xmmh, ufp1, size=4, ext=0
96};
97
98def macroop PSRAD_XMM_I {
99 msrai xmml, xmml, imm, size=4, ext=0
100 msrai xmmh, xmmh, imm, size=4, ext=0
101};
59'''
102'''