Add avx to the list of gathered features

This commit is contained in:
Baptiste Wicht 2013-10-16 12:33:57 +02:00
parent 41ecd7c69a
commit e0b7aaa240

View File

@ -20,6 +20,7 @@ STRING sysinfo_sse2, "sse2 "
STRING sysinfo_sse3, "sse3 "
STRING sysinfo_sse4_1, "sse4_1 "
STRING sysinfo_sse4_2, "sse4_2 "
STRING sysinfo_avx, "avx"
STRING sysinfo_ht, "ht "
STRING available_commands, "Available commands: "
@ -234,12 +235,23 @@ sysinfo_command:
mov r15, rcx
and r15, 1 << 20
cmp r15, 0
je .frequency
je .avx
mov r8, sysinfo_sse4_2
mov r9, sysinfo_sse4_2_length
call print_normal
.avx:
mov r15, rcx
and r15, 1 << 28
cmp r15, 0
je .frequency
mov r8, sysinfo_avx
mov r9, sysinfo_avx_length
call print_normal
.frequency:
call goto_next_line