Blame sysdeps/x86_64/x32/sysdep.h

Packit 6c4009
/* Assembler macros for x32.
Packit 6c4009
   Copyright (C) 2012-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#include <sysdeps/x86_64/sysdep.h>
Packit 6c4009
Packit 6c4009
#undef LP_SIZE
Packit 6c4009
#undef LP_OP
Packit 6c4009
#undef ASM_ADDR
Packit 6c4009
Packit 6c4009
#undef RAX_LP
Packit 6c4009
#undef RBP_LP
Packit 6c4009
#undef RBX_LP
Packit 6c4009
#undef RCX_LP
Packit 6c4009
#undef RDI_LP
Packit 6c4009
#undef RDX_LP
Packit 6c4009
#undef RSP_LP
Packit 6c4009
#undef RSI_LP
Packit 6c4009
#undef R8_LP
Packit 6c4009
#undef R9_LP
Packit 6c4009
#undef R10_LP
Packit 6c4009
#undef R11_LP
Packit 6c4009
#undef R12_LP
Packit 6c4009
#undef R13_LP
Packit 6c4009
#undef R14_LP
Packit 6c4009
#undef R15_LP
Packit 6c4009
Packit 6c4009
#ifdef	__ASSEMBLER__
Packit 6c4009
Packit 6c4009
# define LP_SIZE 4
Packit 6c4009
Packit 6c4009
# define LP_OP(insn) insn##l
Packit 6c4009
Packit 6c4009
# define ASM_ADDR .long
Packit 6c4009
Packit 6c4009
# define RAX_LP	eax
Packit 6c4009
# define RBP_LP	ebp
Packit 6c4009
# define RBX_LP	ebx
Packit 6c4009
# define RCX_LP	ecx
Packit 6c4009
# define RDI_LP	edi
Packit 6c4009
# define RDX_LP	edx
Packit 6c4009
# define RSI_LP	esi
Packit 6c4009
# define RSP_LP	esp
Packit 6c4009
# define R8_LP	r8d
Packit 6c4009
# define R9_LP	r9d
Packit 6c4009
# define R10_LP	r10d
Packit 6c4009
# define R11_LP	r11d
Packit 6c4009
# define R12_LP	r12d
Packit 6c4009
# define R13_LP	r13d
Packit 6c4009
# define R14_LP	r14d
Packit 6c4009
# define R15_LP	r15d
Packit 6c4009
Packit 6c4009
#else	/* __ASSEMBLER__ */
Packit 6c4009
Packit 6c4009
# define LP_SIZE "4"
Packit 6c4009
Packit 6c4009
# define LP_OP(insn) #insn "l"
Packit 6c4009
Packit 6c4009
# define ASM_ADDR ".long"
Packit 6c4009
Packit 6c4009
# define RAX_LP	"eax"
Packit 6c4009
# define RBP_LP	"ebp"
Packit 6c4009
# define RBX_LP	"ebx"
Packit 6c4009
# define RCX_LP	"ecx"
Packit 6c4009
# define RDI_LP	"edi"
Packit 6c4009
# define RDX_LP	"edx"
Packit 6c4009
# define RSI_LP	"esi"
Packit 6c4009
# define RSP_LP	"esp"
Packit 6c4009
# define R8_LP	"r8d"
Packit 6c4009
# define R9_LP	"r9d"
Packit 6c4009
# define R10_LP	"r10d"
Packit 6c4009
# define R11_LP	"r11d"
Packit 6c4009
# define R12_LP	"r12d"
Packit 6c4009
# define R13_LP	"r13d"
Packit 6c4009
# define R14_LP	"r14d"
Packit 6c4009
# define R15_LP	"r15d"
Packit 6c4009
Packit 6c4009
#endif	/* __ASSEMBLER__ */