clarify the purpose of this project
[nyanglibc.git] / elf / get-cpuid-feature-leaf.s
blobe3d0880d2c1798dff5ca79e386d509624d8beb26
1 .text
2 .p2align 4,,15
3 .globl __x86_get_cpuid_feature_leaf
4 .type __x86_get_cpuid_feature_leaf, @function
5 __x86_get_cpuid_feature_leaf:
6 cmpl $7, %edi
7 leaq feature.9014(%rip), %rax
8 ja .L1
9 movl %edi, %edi
10 leaq _dl_x86_cpu_features(%rip), %rax
11 salq $5, %rdi
12 leaq 20(%rax,%rdi), %rax
13 .L1:
14 rep ret
15 .size __x86_get_cpuid_feature_leaf, .-__x86_get_cpuid_feature_leaf
16 .section .rodata
17 .align 32
18 .type feature.9014, @object
19 .size feature.9014, 32
20 feature.9014:
21 .zero 32