1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /******************************************************************************
3 * arch/ia64/include/asm/native/inst.h
5 * Copyright (c) 2008 Isaku Yamahata <yamahata at valinux co jp>
6 * VA Linux Systems Japan K.K.
9 #define DO_SAVE_MIN IA64_NATIVE_DO_SAVE_MIN
11 #define MOV_FROM_IFA(reg) \
14 #define MOV_FROM_ITIR(reg) \
17 #define MOV_FROM_ISR(reg) \
20 #define MOV_FROM_IHA(reg) \
23 #define MOV_FROM_IPSR(pred, reg) \
24 (pred) mov reg = cr.ipsr
26 #define MOV_FROM_IIM(reg) \
29 #define MOV_FROM_IIP(reg) \
32 #define MOV_FROM_IVR(reg, clob) \
35 #define MOV_FROM_PSR(pred, reg, clob) \
38 #define MOV_FROM_ITC(pred, pred_clob, reg, clob) \
39 (pred) mov reg = ar.itc
41 #define MOV_TO_IFA(reg, clob) \
44 #define MOV_TO_ITIR(pred, reg, clob) \
45 (pred) mov cr.itir = reg
47 #define MOV_TO_IHA(pred, reg, clob) \
48 (pred) mov cr.iha = reg
50 #define MOV_TO_IPSR(pred, reg, clob) \
51 (pred) mov cr.ipsr = reg
53 #define MOV_TO_IFS(pred, reg, clob) \
54 (pred) mov cr.ifs = reg
56 #define MOV_TO_IIP(reg, clob) \
59 #define MOV_TO_KR(kr, reg, clob0, clob1) \
62 #define ITC_I(pred, reg, clob) \
65 #define ITC_D(pred, reg, clob) \
68 #define ITC_I_AND_D(pred_i, pred_d, reg, clob) \
72 #define THASH(pred, reg0, reg1, clob) \
73 (pred) thash reg0 = reg1
75 #define SSM_PSR_IC_AND_DEFAULT_BITS_AND_SRLZ_I(clob0, clob1) \
76 ssm psr.ic | PSR_DEFAULT_BITS \
78 srlz.i /* guarantee that interruption collectin is on */ \
81 #define SSM_PSR_IC_AND_SRLZ_D(clob0, clob1) \
86 #define RSM_PSR_IC(clob) \
89 #define SSM_PSR_I(pred, pred_clob, clob) \
92 #define RSM_PSR_I(pred, clob0, clob1) \
95 #define RSM_PSR_I_IC(clob0, clob1, clob2) \
101 #define RSM_PSR_BE_I(clob0, clob1) \
104 #define SSM_PSR_DT_AND_SRLZ_I \
109 #define BSW_0(clob0, clob1, clob2) \
112 #define BSW_1(clob0, clob1) \