/* * Copyright 2002-2019 Intel Corporation. * * This software is provided to you as Sample Source Code as defined in the accompanying * End User License Agreement for the Intel(R) Software Development Products ("Agreement") * section 1.L. * * This software and the related documents are provided as is, with no express or implied * warranties, other than those that are expressly stated in the License. */ .data .align 16 xmmval: .quad 0x123456789abcdef0 .quad 0xff00ff000a550a55 .text .align 4 .globl DoXmm .type DoXmm, @function DoXmm: mov $1, %rax cvtsi2ss %rax, %xmm0 /* %xmm0 = 1.0 (in lower 32-bits) */ mov $2, %rax cvtsi2ss %rax, %xmm1 /* %xmm1 = 2.0 (in lower 32-bits) */ lea xmmval, %rax movdqa (%rax), %xmm2 nop ret .align 4 .globl ZeroXmms .type ZeroXmms, @function ZeroXmms: pxor %xmm0, %xmm0 pxor %xmm1, %xmm1 pxor %xmm2, %xmm2 pxor %xmm3, %xmm3 ret