1 /* Copyright (C) 1999-2021 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <https://www.gnu.org/licenses/>. */
19 * Powerpc Feature masks for the Aux Vector Hardware Capabilities (AT_HWCAP).
20 * This entry is copied to _dl_hwcap or rtld_global._dl_hwcap during startup.
22 #define _SYSDEPS_SYSDEP_H 1
23 #include <bits/hwcap.h>
25 #define PPC_FEATURE_970 (PPC_FEATURE_POWER4 + PPC_FEATURE_HAS_ALTIVEC)
29 /* Symbolic names for the registers. The only portable way to write asm
30 code is to use number but this produces really unreadable code.
31 Therefore these symbolic names. */
33 /* Integer registers. */
67 /* Floating-point registers. */
101 /* Condition code registers. */
111 /* Vector registers. */
147 /* The 32-bit words of a 64-bit dword are at these offsets in memory. */
148 #if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
156 /* The high 16-bit word of a 64-bit dword is at this offset in memory. */
157 #if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
163 /* This seems to always be the case on PPC. */
164 #define ALIGNARG(log2) log2
165 #define ASM_SIZE_DIRECTIVE(name) .size name,.-name
167 #endif /* __ASSEMBLER__ */