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 9# use which is NOT directed to receiving any direct monetary 10# compensation for, or commercial advantage from such use. Illustrative 11# examples of non-commercial use are academic research, personal study, 12# teaching, education and corporate research & development. 13# Illustrative examples of commercial use are distributing products for 14# commercial advantage and providing services using the software for 15# commercial advantage. 16# 17# If you wish to use this software or functionality therein that may be 18# covered by patents for commercial use, please contact: 19# Director of Intellectual Property Licensing 20# Office of Strategy and Technology 21# Hewlett-Packard Company 22# 1501 Page Mill Road 23# Palo Alto, California 94304 24# 25# Redistributions of source code must retain the above copyright notice, 26# this list of conditions and the following disclaimer. Redistributions 27# in binary form must reproduce the above copyright notice, this list of 28# conditions and the following disclaimer in the documentation and/or 29# other materials provided with the distribution. Neither the name of 30# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 31# contributors may be used to endorse or promote products derived from 32# this software without specific prior written permission. No right of 33# sublicense is granted herewith. Derivatives of the software and 34# output created using the software may be prepared, but only for 35# Non-Commercial Uses. Derivatives of the software may be shared with 36# others provided: (i) the others agree to abide by the list of 37# conditions herein which includes the Non-Commercial Use restrictions; 38# and (ii) such Derivatives of the software include the above copyright 39# notice to acknowledge the contribution from this software where 40# applicable, this list of conditions and the disclaimer below. 41# 42# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 43# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 44# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 45# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 46# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 47# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 48# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 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 = ''' 57def macroop MOVAPS_XMM_M { 58 # Check low address. 59 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 60 ldfp xmml, seg, sib, disp, dataSize=8 61}; 62 63def macroop MOVAPS_XMM_P { 64 rdip t7 65 # Check low address. 66 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 67 ldfp xmml, seg, riprel, disp, dataSize=8 68}; 69 70def macroop MOVAPS_M_XMM { 71 # Check low address. 72 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 73 stfp xmml, seg, sib, disp, dataSize=8 74}; 75 76def macroop MOVAPS_P_XMM { 77 rdip t7 78 # Check low address. 79 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 80 stfp xmml, seg, riprel, disp, dataSize=8 81}; 82 83def macroop MOVAPS_XMM_XMM { 84 # Check low address. 85 movfp xmml, xmmlm, dataSize=8 86 movfp xmmh, xmmhm, dataSize=8 87}; 88 89def macroop MOVAPD_XMM_XMM { 90 movfp xmml, xmmlm, dataSize=8 91 movfp xmmh, xmmhm, dataSize=8 92}; 93 94def macroop MOVAPD_XMM_M { 95 ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 96 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 97}; 98 99def macroop MOVAPD_XMM_P { 100 rdip t7 101 ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 102 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 103}; 104 105def macroop MOVAPD_M_XMM { 106 stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 107 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 108}; 109 110def macroop MOVAPD_P_XMM { 111 rdip t7 112 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 113 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 114}; 115 116def macroop MOVUPS_XMM_XMM { 117 movfp xmml, xmmlm, dataSize=8 118 movfp xmmh, xmmhm, dataSize=8 119}; 120 121def macroop MOVUPS_XMM_M { 122 ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 123 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 124}; 125 126def macroop MOVUPS_XMM_P { 127 rdip t7 128 ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 129 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 130}; 131 132def macroop MOVUPS_M_XMM { 133 stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 134 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 135}; 136 137def macroop MOVUPS_P_XMM { 138 rdip t7 139 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 140 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 141}; 142 143def macroop MOVUPD_XMM_XMM { 144 movfp xmml, xmmlm, dataSize=8 145 movfp xmmh, xmmhm, dataSize=8 146}; 147 148def macroop MOVUPD_XMM_M { 149 ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 150 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 151}; 152 153def macroop MOVUPD_XMM_P { 154 rdip t7 155 ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 156 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 157}; 158 159def macroop MOVUPD_M_XMM { 160 stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 161 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 162}; 163 164def macroop MOVUPD_P_XMM { 165 rdip t7 166 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 167 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 168}; 169 170def macroop MOVHPS_XMM_M { 171 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 172}; 173 174def macroop MOVHPS_XMM_P { 175 rdip t7 176 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 177}; 178 179def macroop MOVHPS_M_XMM { 180 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 181}; 182 183def macroop MOVHPS_P_XMM { 184 rdip t7 185 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 186 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 187}; 188 189def macroop MOVHPD_XMM_M {
| 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 9# use which is NOT directed to receiving any direct monetary 10# compensation for, or commercial advantage from such use. Illustrative 11# examples of non-commercial use are academic research, personal study, 12# teaching, education and corporate research & development. 13# Illustrative examples of commercial use are distributing products for 14# commercial advantage and providing services using the software for 15# commercial advantage. 16# 17# If you wish to use this software or functionality therein that may be 18# covered by patents for commercial use, please contact: 19# Director of Intellectual Property Licensing 20# Office of Strategy and Technology 21# Hewlett-Packard Company 22# 1501 Page Mill Road 23# Palo Alto, California 94304 24# 25# Redistributions of source code must retain the above copyright notice, 26# this list of conditions and the following disclaimer. Redistributions 27# in binary form must reproduce the above copyright notice, this list of 28# conditions and the following disclaimer in the documentation and/or 29# other materials provided with the distribution. Neither the name of 30# the COPYRIGHT HOLDER(s), HEWLETT-PACKARD COMPANY, nor the names of its 31# contributors may be used to endorse or promote products derived from 32# this software without specific prior written permission. No right of 33# sublicense is granted herewith. Derivatives of the software and 34# output created using the software may be prepared, but only for 35# Non-Commercial Uses. Derivatives of the software may be shared with 36# others provided: (i) the others agree to abide by the list of 37# conditions herein which includes the Non-Commercial Use restrictions; 38# and (ii) such Derivatives of the software include the above copyright 39# notice to acknowledge the contribution from this software where 40# applicable, this list of conditions and the disclaimer below. 41# 42# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 43# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 44# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 45# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 46# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 47# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 48# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 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 = ''' 57def macroop MOVAPS_XMM_M { 58 # Check low address. 59 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 60 ldfp xmml, seg, sib, disp, dataSize=8 61}; 62 63def macroop MOVAPS_XMM_P { 64 rdip t7 65 # Check low address. 66 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 67 ldfp xmml, seg, riprel, disp, dataSize=8 68}; 69 70def macroop MOVAPS_M_XMM { 71 # Check low address. 72 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 73 stfp xmml, seg, sib, disp, dataSize=8 74}; 75 76def macroop MOVAPS_P_XMM { 77 rdip t7 78 # Check low address. 79 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 80 stfp xmml, seg, riprel, disp, dataSize=8 81}; 82 83def macroop MOVAPS_XMM_XMM { 84 # Check low address. 85 movfp xmml, xmmlm, dataSize=8 86 movfp xmmh, xmmhm, dataSize=8 87}; 88 89def macroop MOVAPD_XMM_XMM { 90 movfp xmml, xmmlm, dataSize=8 91 movfp xmmh, xmmhm, dataSize=8 92}; 93 94def macroop MOVAPD_XMM_M { 95 ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 96 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 97}; 98 99def macroop MOVAPD_XMM_P { 100 rdip t7 101 ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 102 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 103}; 104 105def macroop MOVAPD_M_XMM { 106 stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 107 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 108}; 109 110def macroop MOVAPD_P_XMM { 111 rdip t7 112 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 113 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 114}; 115 116def macroop MOVUPS_XMM_XMM { 117 movfp xmml, xmmlm, dataSize=8 118 movfp xmmh, xmmhm, dataSize=8 119}; 120 121def macroop MOVUPS_XMM_M { 122 ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 123 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 124}; 125 126def macroop MOVUPS_XMM_P { 127 rdip t7 128 ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 129 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 130}; 131 132def macroop MOVUPS_M_XMM { 133 stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 134 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 135}; 136 137def macroop MOVUPS_P_XMM { 138 rdip t7 139 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 140 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 141}; 142 143def macroop MOVUPD_XMM_XMM { 144 movfp xmml, xmmlm, dataSize=8 145 movfp xmmh, xmmhm, dataSize=8 146}; 147 148def macroop MOVUPD_XMM_M { 149 ldfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 150 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 151}; 152 153def macroop MOVUPD_XMM_P { 154 rdip t7 155 ldfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 156 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 157}; 158 159def macroop MOVUPD_M_XMM { 160 stfp xmml, seg, sib, "DISPLACEMENT", dataSize=8 161 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 162}; 163 164def macroop MOVUPD_P_XMM { 165 rdip t7 166 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 167 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 168}; 169 170def macroop MOVHPS_XMM_M { 171 ldfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 172}; 173 174def macroop MOVHPS_XMM_P { 175 rdip t7 176 ldfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 177}; 178 179def macroop MOVHPS_M_XMM { 180 stfp xmmh, seg, sib, "DISPLACEMENT + 8", dataSize=8 181}; 182 183def macroop MOVHPS_P_XMM { 184 rdip t7 185 stfp xmml, seg, riprel, "DISPLACEMENT", dataSize=8 186 stfp xmmh, seg, riprel, "DISPLACEMENT + 8", dataSize=8 187}; 188 189def macroop MOVHPD_XMM_M {
|
205}; 206 207def macroop MOVLPS_XMM_M { 208 ldfp xmml, seg, sib, disp, dataSize=8 209}; 210 211def macroop MOVLPS_XMM_P { 212 rdip t7 213 ldfp xmml, seg, riprel, disp, dataSize=8 214}; 215 216def macroop MOVLPS_M_XMM { 217 stfp xmml, seg, sib, disp, dataSize=8 218}; 219 220def macroop MOVLPS_P_XMM { 221 rdip t7 222 stfp xmml, seg, riprel, disp, dataSize=8 223}; 224 225def macroop MOVLPD_XMM_M { 226 ldfp xmml, seg, sib, disp, dataSize=8 227}; 228 229def macroop MOVLPD_XMM_P { 230 rdip t7 231 ldfp xmml, seg, riprel, disp, dataSize=8 232}; 233 234def macroop MOVLPD_M_XMM { 235 stfp xmml, seg, sib, disp, dataSize=8 236}; 237 238def macroop MOVLPD_P_XMM { 239 rdip t7 240 stfp xmml, seg, riprel, disp, dataSize=8 241}; 242 243def macroop MOVHLPS_XMM_XMM { 244 movfp xmml, xmmhm, dataSize=8 245}; 246 247def macroop MOVLHPS_XMM_XMM { 248 movfp xmmh, xmmlm, dataSize=8 249}; 250 251def macroop MOVSS_XMM_XMM { 252 movfp xmml, xmmlm, dataSize=4 253}; 254 255def macroop MOVSS_XMM_M { 256 lfpimm xmml, 0 257 lfpimm xmmh, 0 258 ldfp xmml, seg, sib, disp, dataSize=4 259}; 260 261def macroop MOVSS_XMM_P { 262 rdip t7 263 lfpimm xmml, 0 264 lfpimm xmmh, 0 265 ldfp xmml, seg, riprel, disp, dataSize=4 266}; 267 268def macroop MOVSS_M_XMM { 269 stfp xmml, seg, sib, disp, dataSize=4 270}; 271 272def macroop MOVSS_P_XMM { 273 rdip t7 274 stfp xmml, seg, riprel, disp, dataSize=4 275}; 276 277def macroop MOVSD_XMM_M { 278 # Zero xmmh 279 ldfp xmml, seg, sib, disp, dataSize=8 280}; 281 282def macroop MOVSD_XMM_P { 283 rdip t7 284 # Zero xmmh 285 ldfp xmml, seg, riprel, disp, dataSize=8 286}; 287 288def macroop MOVSD_M_XMM { 289 stfp xmml, seg, sib, disp, dataSize=8 290}; 291 292def macroop MOVSD_P_XMM { 293 rdip t7 294 stfp xmml, seg, riprel, disp, dataSize=8 295}; 296 297def macroop MOVSD_XMM_XMM { 298 movfp xmml, xmmlm, dataSize=8 299}; 300'''
| 205}; 206 207def macroop MOVLPS_XMM_M { 208 ldfp xmml, seg, sib, disp, dataSize=8 209}; 210 211def macroop MOVLPS_XMM_P { 212 rdip t7 213 ldfp xmml, seg, riprel, disp, dataSize=8 214}; 215 216def macroop MOVLPS_M_XMM { 217 stfp xmml, seg, sib, disp, dataSize=8 218}; 219 220def macroop MOVLPS_P_XMM { 221 rdip t7 222 stfp xmml, seg, riprel, disp, dataSize=8 223}; 224 225def macroop MOVLPD_XMM_M { 226 ldfp xmml, seg, sib, disp, dataSize=8 227}; 228 229def macroop MOVLPD_XMM_P { 230 rdip t7 231 ldfp xmml, seg, riprel, disp, dataSize=8 232}; 233 234def macroop MOVLPD_M_XMM { 235 stfp xmml, seg, sib, disp, dataSize=8 236}; 237 238def macroop MOVLPD_P_XMM { 239 rdip t7 240 stfp xmml, seg, riprel, disp, dataSize=8 241}; 242 243def macroop MOVHLPS_XMM_XMM { 244 movfp xmml, xmmhm, dataSize=8 245}; 246 247def macroop MOVLHPS_XMM_XMM { 248 movfp xmmh, xmmlm, dataSize=8 249}; 250 251def macroop MOVSS_XMM_XMM { 252 movfp xmml, xmmlm, dataSize=4 253}; 254 255def macroop MOVSS_XMM_M { 256 lfpimm xmml, 0 257 lfpimm xmmh, 0 258 ldfp xmml, seg, sib, disp, dataSize=4 259}; 260 261def macroop MOVSS_XMM_P { 262 rdip t7 263 lfpimm xmml, 0 264 lfpimm xmmh, 0 265 ldfp xmml, seg, riprel, disp, dataSize=4 266}; 267 268def macroop MOVSS_M_XMM { 269 stfp xmml, seg, sib, disp, dataSize=4 270}; 271 272def macroop MOVSS_P_XMM { 273 rdip t7 274 stfp xmml, seg, riprel, disp, dataSize=4 275}; 276 277def macroop MOVSD_XMM_M { 278 # Zero xmmh 279 ldfp xmml, seg, sib, disp, dataSize=8 280}; 281 282def macroop MOVSD_XMM_P { 283 rdip t7 284 # Zero xmmh 285 ldfp xmml, seg, riprel, disp, dataSize=8 286}; 287 288def macroop MOVSD_M_XMM { 289 stfp xmml, seg, sib, disp, dataSize=8 290}; 291 292def macroop MOVSD_P_XMM { 293 rdip t7 294 stfp xmml, seg, riprel, disp, dataSize=8 295}; 296 297def macroop MOVSD_XMM_XMM { 298 movfp xmml, xmmlm, dataSize=8 299}; 300'''
|