exclusive_or.py (5081:2ccce8600a9d) exclusive_or.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# XORPS
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# XORPS
58
59def macroop XORPD_R_R {
59def macroop XORPD_XMM_XMM {
60 xorfp xmml, xmml, xmmlm
61 xorfp xmmh, xmmh, xmmhm
62};
63
60 xorfp xmml, xmml, xmmlm
61 xorfp xmmh, xmmh, xmmhm
62};
63
64def macroop XORPD_R_M {
64def macroop XORPD_XMM_M {
65 ldfp ufp1, seg, sib, disp
66 ldfp ufp2, seg, sib, "DISPLACEMENT + 8"
67 xorfp xmml, xmml, ufp1
68 xorfp xmmh, xmmh, ufp2
69};
70
65 ldfp ufp1, seg, sib, disp
66 ldfp ufp2, seg, sib, "DISPLACEMENT + 8"
67 xorfp xmml, xmml, ufp1
68 xorfp xmmh, xmmh, ufp2
69};
70
71def macroop XORPD_R_P {
71def macroop XORPD_XMM_P {
72 rdip t7
73 ldfp ufp1, seg, riprel, disp
74 ldfp ufp2, seg, riprel, "DISPLACEMENT + 8"
75 xorfp xmml, xmml, ufp1
76 xorfp xmmh, xmmh, ufp2
77};
78'''
72 rdip t7
73 ldfp ufp1, seg, riprel, disp
74 ldfp ufp2, seg, riprel, "DISPLACEMENT + 8"
75 xorfp xmml, xmml, ufp1
76 xorfp xmmh, xmmh, ufp2
77};
78'''