1 /*******************************************************************************
2 * Copyright 2021 Intel Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *******************************************************************************/
16 
17 #ifndef CPU_X64_GEMM_F32_JIT_AVX_KERNEL_SGEMM_KERN_AUTOGEN_HPP
18 #define CPU_X64_GEMM_F32_JIT_AVX_KERNEL_SGEMM_KERN_AUTOGEN_HPP
19 #ifndef _WIN32
20 
21 #define M rdi
22 #define N rsi
23 #define K rdx
24 #define A r8
25 #define B r9
26 #define C rcx
27 #define LDC r10
28 
29 #define AA r15
30 #define I r11
31 #define J r12
32 #define H rax
33 #define AO rbx
34 #define BO rbp
35 #define CO1 r13
36 #define CO2 r14
37 
38 #define OLD_C (8 + stacksize + rsp)
39 #define OLD_LDC (16 + stacksize + rsp)
40 
41 #else
42 
43 #define M rcx
44 #define N rdx
45 #define K r8
46 #define A rdi
47 #define B rsi
48 #define C r9
49 #define LDC r10
50 #define AA r15
51 #define I r11
52 #define J r12
53 #define H rax
54 #define AO rbx
55 #define BO rbp
56 #define CO1 r13
57 #define CO2 r14
58 
59 #define OLD_A 40 + stacksize + rsp
60 #define OLD_B 48 + stacksize + rsp
61 #define OLD_C 56 + stacksize + rsp
62 #define OLD_LDC 64 + stacksize + rsp
63 
64 #endif
65 
66 #endif
67