Difference between revisions of "Assembler:Commands:ADDPD"
Jump to navigation
Jump to search
m |
m |
||
Line 42: | Line 42: | ||
alloc(newmem,$100) | alloc(newmem,$100) | ||
− | alloc( | + | alloc(sse,$10) |
; ... | ; ... | ||
newmem: | newmem: | ||
− | addpd xmm0,[ | + | addpd xmm0,[sse] |
; ... | ; ... | ||
Line 53: | Line 53: | ||
jmp return | jmp return | ||
− | + | sse: | |
dq (float)3000 | dq (float)3000 | ||
dq (float)5000 | dq (float)5000 |
Revision as of 12:26, 18 January 2018
command addpd destination, source
Adds the source to the destination. Used for Adding Packed-Double-Precision Floating-Point Values. The addpd command can only be used with xmm registers.
Performs an SIMD add of the two packed double-precision floating-point values from the source operand (second operand) and the destination operand (first operand), and stores the packed double-precision floating-point results in the destination operand. The source operand can be an XMM register or a 128-bit memory location. The destination operand is an XMM register.
Command Parameters
Parameter | Description |
---|---|
destination | xmm |
source | xmm / m128 |
Examples
addpd xmm0,xmm1
addpd xmm3,[edx+110]
addpd xmm15,[rdx+10]
addpd xmm5,[00123abc]
addpd xmm7,[UserDefinedSymbol]
[enable] ; ... alloc(newmem,$100) alloc(sse,$10) ; ... newmem: addpd xmm0,[sse] ; ... jmp return sse: dq (float)3000 dq (float)5000 ; ... return: [disable] ; ...