annotate gcc/config/aarch64/aarch64-option-extensions.def @ 111:04ced10e8804

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