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_MMX_MMX {
58 msra mmx, mmx, mmxm, size=2, ext=0
59};
60
61def macroop PSRAW_MMX_M {
62 ldfp ufp1, seg, sib, disp, dataSize=8
63 msra mmx, mmx, ufp1, size=2, ext=0
64};
65
66def macroop PSRAW_MMX_P {
67 rdip t7
68 ldfp ufp1, seg, riprel, disp, dataSize=8
69 msra mmx, mmx, ufp1, size=2, ext=0
70};
71
72def macroop PSRAW_MMX_I {
73 msrai mmx, mmx, imm, size=2, ext=0
74};
75
76def macroop PSRAD_MMX_MMX {
77 msra mmx, mmx, mmxm, size=4, ext=0
78};
79
80def macroop PSRAD_MMX_M {
81 ldfp ufp1, seg, sib, disp, dataSize=8
82 msra mmx, mmx, ufp1, size=4, ext=0
83};
84
85def macroop PSRAD_MMX_P {
86 rdip t7
87 ldfp ufp1, seg, riprel, disp, dataSize=8
88 msra mmx, mmx, ufp1, size=4, ext=0
89};
90
91def macroop PSRAD_MMX_I {
92 msrai mmx, mmx, imm, size=4, ext=0
93};
59'''
94'''