updated licenses
[gnutls.git] / lib / accelerated / x86 / elf / cpuid-x86-64.s
blobb0b91b3a3a3ee86c9aef957032c7ecc24391c3a6
2 # Copyright (C) 2011-2012 Free Software Foundation, Inc.
4 # Author: Nikos Mavrogiannopoulos
6 # This file is part of GnuTLS.
8 # The GnuTLS is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public License
10 # as published by the Free Software Foundation; either version 3 of
11 # the License, or (at your option) any later version.
13 # This library is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 # *** This file is auto-generated ***
23 .text
24 .globl gnutls_cpuid
25 .type gnutls_cpuid,@function
26 .align 16
27 gnutls_cpuid:
28 pushq %rbp
29 movq %rsp,%rbp
30 pushq %rbx
31 movl %edi,-12(%rbp)
32 movq %rsi,-24(%rbp)
33 movq %rdx,-32(%rbp)
34 movq %rcx,-40(%rbp)
35 movq %r8,-48(%rbp)
36 movl -12(%rbp),%eax
37 movl %eax,-60(%rbp)
38 movl -60(%rbp),%eax
39 cpuid
40 movl %edx,-56(%rbp)
41 movl %ecx,%esi
42 movl %eax,-52(%rbp)
43 movq -24(%rbp),%rax
44 movl -52(%rbp),%edx
45 movl %edx,(%rax)
46 movq -32(%rbp),%rax
47 movl %ebx,(%rax)
48 movq -40(%rbp),%rax
49 movl %esi,(%rax)
50 movq -48(%rbp),%rax
51 movl -56(%rbp),%ecx
52 movl %ecx,(%rax)
53 popq %rbx
54 leave
55 .byte 0xf3,0xc3
56 .size gnutls_cpuid,.-gnutls_cpuid
58 .section .note.GNU-stack,"",%progbits