1/* Copyright (C) 2012-2016 Free Software Foundation, Inc. 2 Contributed by ARM Ltd. 3 4 This file is part of GCC. 5 6 GCC is free software; you can redistribute it and/or modify it 7 under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 3, or (at your option) 9 any later version. 10 11 GCC is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with GCC; see the file COPYING3. If not see 18 <http://www.gnu.org/licenses/>. */ 19 20/* This is a list of ISA extentsions in AArch64. 21 22 Before using #include to read this file, define a macro: 23 24 AARCH64_OPT_EXTENSION(EXT_NAME, FLAG_CANONICAL, FLAGS_ON, FLAGS_OFF, FEATURE_STRING) 25 26 EXT_NAME is the name of the extension, represented as a string constant. 27 FLAGS_CANONICAL is the canonical internal name for this flag. 28 FLAGS_ON are the bitwise-or of the features that enabling the extension 29 adds, or zero if enabling this extension has no effect on other features. 30 FLAGS_OFF are the bitwise-or of the features that disabling the extension 31 removes, or zero if disabling this extension has no effect on other 32 features. 33 FEAT_STRING is a string containing the entries in the 'Features' field of 34 /proc/cpuinfo on a GNU/Linux system that correspond to this architecture 35 extension being available. Sometimes multiple entries are needed to enable 36 the extension (for example, the 'crypto' extension depends on four 37 entries: aes, pmull, sha1, sha2 being present). In that case this field 38 should contain a space (" ") separated list of the strings in 'Features' 39 that are required. Their order is not important. */ 40 41/* Enabling "fp" just enables "fp". 42 Disabling "fp" also disables "simd", "crypto". */ 43AARCH64_OPT_EXTENSION("fp", AARCH64_FL_FP, 0, AARCH64_FL_SIMD | AARCH64_FL_CRYPTO, "fp") 44 45/* Enabling "simd" also enables "fp". 46 Disabling "simd" also disables "crypto". */ 47AARCH64_OPT_EXTENSION("simd", AARCH64_FL_SIMD, AARCH64_FL_FP, AARCH64_FL_CRYPTO, "asimd") 48 49/* Enabling "crypto" also enables "fp", "simd". 50 Disabling "crypto" just disables "crypto". */ 51AARCH64_OPT_EXTENSION("crypto", AARCH64_FL_CRYPTO, AARCH64_FL_FP | AARCH64_FL_SIMD, 0, "aes pmull sha1 sha2") 52 53/* Enabling or disabling "crc" only changes "crc". */ 54AARCH64_OPT_EXTENSION("crc", AARCH64_FL_CRC, 0, 0, "crc32") 55 56/* Enabling or disabling "lse" only changes "lse". */ 57AARCH64_OPT_EXTENSION("lse", AARCH64_FL_LSE, 0, 0, "atomics") 58