Commit | Line | Data |
---|---|---|
475a2301 L |
1 | # Check xsave/xrstor |
2 | .text | |
3 | _start: | |
4 | xrstor (%ebx) | |
5 | xsave (%ebx) | |
c7b8aa3a | 6 | xsaveopt (%ebx) |
475a2301 L |
7 | xgetbv |
8 | xsetbv | |
9 | ||
10 | .intel_syntax noprefix | |
11 | xrstor [ecx] | |
12 | xsave [ecx] | |
c7b8aa3a | 13 | xsaveopt [ecx] |
59ef5df4 JB |
14 | |
15 | .att_syntax prefix | |
16 | avx: | |
17 | .arch generic32 | |
18 | .arch .avx | |
19 | xsave (%eax) | |
20 | xrstor (%eax) | |
21 | ||
22 | lwp: | |
23 | .arch generic32 | |
24 | .arch .lwp | |
25 | xsave (%eax) | |
26 | xrstor (%eax) | |
27 | ||
28 | mpx: | |
29 | .arch generic32 | |
30 | .arch .mpx | |
31 | xsave (%eax) | |
32 | xrstor (%eax) | |
33 | ||
34 | pku: | |
35 | .arch generic32 | |
36 | .arch .ospke | |
37 | xsave (%eax) | |
38 | xrstor (%eax) |