]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/intel-ipsec-mb/include/reg_sizes.asm
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / spdk / intel-ipsec-mb / include / reg_sizes.asm
1 ;;
2 ;; Copyright (c) 2012-2018, Intel Corporation
3 ;;
4 ;; Redistribution and use in source and binary forms, with or without
5 ;; modification, are permitted provided that the following conditions are met:
6 ;;
7 ;; * Redistributions of source code must retain the above copyright notice,
8 ;; this list of conditions and the following disclaimer.
9 ;; * Redistributions in binary form must reproduce the above copyright
10 ;; notice, this list of conditions and the following disclaimer in the
11 ;; documentation and/or other materials provided with the distribution.
12 ;; * Neither the name of Intel Corporation nor the names of its contributors
13 ;; may be used to endorse or promote products derived from this software
14 ;; without specific prior written permission.
15 ;;
16 ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 ;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 ;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 ;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
20 ;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 ;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 ;; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 ;; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 ;; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ;;
27
28 ; define d and w variants for registers
29
30 %define raxd eax
31 %define raxw ax
32 %define raxb al
33
34 %define rbxd ebx
35 %define rbxw bx
36 %define rbxb bl
37
38 %define rcxd ecx
39 %define rcxw cx
40 %define rcxb cl
41
42 %define rdxd edx
43 %define rdxw dx
44 %define rdxb dl
45
46 %define rsid esi
47 %define rsiw si
48 %define rsib sil
49
50 %define rdid edi
51 %define rdiw di
52 %define rdib dil
53
54 %define rbpd ebp
55 %define rbpw bp
56 %define rbpb bpl
57
58 %define zmm0x xmm0
59 %define zmm1x xmm1
60 %define zmm2x xmm2
61 %define zmm3x xmm3
62 %define zmm4x xmm4
63 %define zmm5x xmm5
64 %define zmm6x xmm6
65 %define zmm7x xmm7
66 %define zmm8x xmm8
67 %define zmm9x xmm9
68 %define zmm10x xmm10
69 %define zmm11x xmm11
70 %define zmm12x xmm12
71 %define zmm13x xmm13
72 %define zmm14x xmm14
73 %define zmm15x xmm15
74
75 %define ymm0x xmm0
76 %define ymm1x xmm1
77 %define ymm2x xmm2
78 %define ymm3x xmm3
79 %define ymm4x xmm4
80 %define ymm5x xmm5
81 %define ymm6x xmm6
82 %define ymm7x xmm7
83 %define ymm8x xmm8
84 %define ymm9x xmm9
85 %define ymm10x xmm10
86 %define ymm11x xmm11
87 %define ymm12x xmm12
88 %define ymm13x xmm13
89 %define ymm14x xmm14
90 %define ymm15x xmm15
91
92 %define zmm0y ymm0
93 %define zmm1y ymm1
94 %define zmm2y ymm2
95 %define zmm3y ymm3
96 %define zmm4y ymm4
97 %define zmm5y ymm5
98 %define zmm6y ymm6
99 %define zmm7y ymm7
100 %define zmm8y ymm8
101 %define zmm9y ymm9
102 %define zmm10y ymm10
103 %define zmm11y ymm11
104 %define zmm12y ymm12
105 %define zmm13y ymm13
106 %define zmm14y ymm14
107 %define zmm15y ymm15
108
109
110 %define DWORD(reg) reg %+ d
111 %define WORD(reg) reg %+ w
112 %define BYTE(reg) reg %+ b
113
114 %define XWORD(reg) reg %+ x
115 %define YWORD(reg) reg %+ y