Commit | Line | Data |
---|---|---|
7e8b059b L |
1 | # MPX instructions |
2 | .allow_index_reg | |
3 | .text | |
4 | ||
5 | ### bndmk | |
6 | bndmk (%eax), %bnd1 | |
7 | bndmk 0x3(%ecx,%ebx,1), %bnd1 | |
8178be5b JB |
8 | bndmk (%rip), %bnd3 |
9 | bndmk (%eip), %bnd2 | |
7e8b059b L |
10 | |
11 | ### bndmov | |
12 | bndmov (%r8d), %bnd1 | |
13 | bndmov 0x3(%r9d,%edx,1), %bnd1 | |
14 | ||
15 | bndmov %bnd1, (%eax) | |
16 | bndmov %bnd1, 0x3(%ecx,%eax,1) | |
17 | ||
18 | ### bndcl | |
19 | bndcl (%ecx), %bnd1 | |
20 | bndcl 0x3(%ecx,%eax,1), %bnd1 | |
4c5b8d1e JB |
21 | bndcl %ecx, %bnd1 |
22 | bndcl %cx, %bnd1 | |
7e8b059b L |
23 | |
24 | ### bndcu | |
25 | bndcu (%ecx), %bnd1 | |
26 | bndcu 0x3(%ecx,%eax,1), %bnd1 | |
4c5b8d1e JB |
27 | bndcu %ecx, %bnd1 |
28 | bndcu %cx, %bnd1 | |
7e8b059b L |
29 | |
30 | ### bndcn | |
31 | bndcn (%ecx), %bnd1 | |
32 | bndcn 0x3(%ecx,%eax,1), %bnd1 | |
4c5b8d1e JB |
33 | bndcn %ecx, %bnd1 |
34 | bndcn %cx, %bnd1 | |
7e8b059b L |
35 | |
36 | ### bndstx | |
37 | bndstx %bnd0, 0x3(%eax,%ebx,1) | |
38 | bndstx %bnd2, 3(%ebx,1) | |
8178be5b JB |
39 | bndstx %bnd1, (%r15,%rax,2) |
40 | bndstx %bnd3, base(%rip) | |
41 | bndstx %bnd1, base(%eip) | |
7e8b059b L |
42 | |
43 | ### bndldx | |
44 | bndldx 0x3(%eax,%ebx,1), %bnd0 | |
45 | bndldx 3(%ebx,1), %bnd2 | |
8178be5b JB |
46 | bndldx (%rax,%r15,4), %bnd3 |
47 | bndldx base(%rip), %bnd1 | |
48 | bndldx base(%eip), %bnd3 | |
7e8b059b L |
49 | |
50 | .intel_syntax noprefix | |
51 | bndmk bnd1, [eax] | |
52 | bndmk bnd1, [edx+1*eax+0x3] | |
8178be5b JB |
53 | bndmk bnd3, [rip] |
54 | bndmk bnd2, [eip] | |
4c5b8d1e | 55 | bndmk bnd2, [rax+rsp] |
7e8b059b L |
56 | |
57 | ### bndmov | |
58 | bndmov bnd1, [eax] | |
59 | bndmov bnd1, [edx+1*eax+0x3] | |
60 | ||
61 | bndmov [eax], bnd1 | |
62 | bndmov [edx+1*eax+0x3], bnd1 | |
63 | ||
64 | ### bndcl | |
65 | bndcl bnd1, [eax] | |
66 | bndcl bnd1, [edx+1*eax+0x3] | |
4c5b8d1e JB |
67 | bndcl bnd1, eax |
68 | bndcl bnd1, dx | |
7e8b059b L |
69 | |
70 | ### bndcu | |
71 | bndcu bnd1, [eax] | |
72 | bndcu bnd1, [edx+1*eax+0x3] | |
4c5b8d1e JB |
73 | bndcu bnd1, eax |
74 | bndcu bnd1, dx | |
7e8b059b L |
75 | |
76 | ### bndcn | |
77 | bndcn bnd1, [eax] | |
78 | bndcn bnd1, [edx+1*eax+0x3] | |
4c5b8d1e JB |
79 | bndcn bnd1, eax |
80 | bndcn bnd1, dx | |
7e8b059b L |
81 | |
82 | ### bndstx | |
83 | bndstx [eax+ebx*1+0x3], bnd0 | |
84 | bndstx [1*ebx+3], bnd2 | |
8178be5b JB |
85 | bndstx [r8+rdi*4], bnd2 |
86 | bndstx [rip+base], bnd1 | |
87 | bndstx [eip+base], bnd3 | |
4c5b8d1e | 88 | bndstx [rax+rsp], bnd3 |
7e8b059b L |
89 | |
90 | ### bndldx | |
91 | bndldx bnd0, [eax+ebx*1+0x3] | |
92 | bndldx bnd2, [1*ebx+3] | |
8178be5b JB |
93 | bndldx bnd2, [rdi+r8*8] |
94 | bndldx bnd1, [rip+base] | |
95 | bndldx bnd3, [eip+base] | |
4c5b8d1e | 96 | bndldx bnd3, [rax+rsp] |
1cccfb31 L |
97 | |
98 | # Force a good alignment. | |
99 | .p2align 4,0 |