Path: blob/master/arch/powerpc/include/asm/asm-compat.h
26481 views
#ifndef _ASM_POWERPC_ASM_COMPAT_H1#define _ASM_POWERPC_ASM_COMPAT_H23#include <asm/asm-const.h>4#include <asm/types.h>5#include <asm/ppc-opcode.h>67#ifdef __powerpc64__89/* operations for longs and pointers */10#define PPC_LL stringify_in_c(ld)11#define PPC_STL stringify_in_c(std)12#define PPC_STLU stringify_in_c(stdu)13#define PPC_LCMPI stringify_in_c(cmpdi)14#define PPC_LCMPLI stringify_in_c(cmpldi)15#define PPC_LCMP stringify_in_c(cmpd)16#define PPC_LONG stringify_in_c(.8byte)17#define PPC_LONG_ALIGN stringify_in_c(.balign 8)18#define PPC_TLNEI stringify_in_c(tdnei)19#define PPC_LLARX stringify_in_c(ldarx)20#define PPC_STLCX stringify_in_c(stdcx.)21#define PPC_CNTLZL stringify_in_c(cntlzd)22#define PPC_MTOCRF(FXM, RS) MTOCRF((FXM), RS)23#define PPC_SRL stringify_in_c(srd)24#define PPC_LR_STKOFF 1625#define PPC_MIN_STKFRM 1122627#ifdef __BIG_ENDIAN__28#define LWZX_BE stringify_in_c(lwzx)29#define LDX_BE stringify_in_c(ldx)30#define STWX_BE stringify_in_c(stwx)31#define STDX_BE stringify_in_c(stdx)32#else33#define LWZX_BE stringify_in_c(lwbrx)34#define LDX_BE stringify_in_c(ldbrx)35#define STWX_BE stringify_in_c(stwbrx)36#define STDX_BE stringify_in_c(stdbrx)37#endif3839#ifdef CONFIG_CC_IS_CLANG40#define DS_FORM_CONSTRAINT "Z<>"41#else42#define DS_FORM_CONSTRAINT "YZ<>"43#endif4445#else /* 32-bit */4647/* operations for longs and pointers */48#define PPC_LL stringify_in_c(lwz)49#define PPC_STL stringify_in_c(stw)50#define PPC_STLU stringify_in_c(stwu)51#define PPC_LCMPI stringify_in_c(cmpwi)52#define PPC_LCMPLI stringify_in_c(cmplwi)53#define PPC_LCMP stringify_in_c(cmpw)54#define PPC_LONG stringify_in_c(.long)55#define PPC_LONG_ALIGN stringify_in_c(.balign 4)56#define PPC_TLNEI stringify_in_c(twnei)57#define PPC_LLARX stringify_in_c(lwarx)58#define PPC_STLCX stringify_in_c(stwcx.)59#define PPC_CNTLZL stringify_in_c(cntlzw)60#define PPC_MTOCRF stringify_in_c(mtcrf)61#define PPC_SRL stringify_in_c(srw)62#define PPC_LR_STKOFF 463#define PPC_MIN_STKFRM 166465#endif6667#endif /* _ASM_POWERPC_ASM_COMPAT_H */686970