]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/aarch64/tuning_models/cortexa53.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / aarch64 / tuning_models / cortexa53.h
CommitLineData
4b6da8e7 1/* Tuning model description for AArch64 architecture.
a945c346 2 Copyright (C) 2009-2024 Free Software Foundation, Inc.
4b6da8e7
TC
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#ifndef GCC_AARCH64_H_CORTEXA53
21#define GCC_AARCH64_H_CORTEXA53
22
23#include "generic.h"
24
25static const struct cpu_regmove_cost cortexa53_regmove_cost =
26{
27 1, /* GP2GP */
28 /* Avoid the use of slow int<->fp moves for spilling by setting
29 their cost higher than memmov_cost. */
30 5, /* GP2FP */
31 5, /* FP2GP */
32 2 /* FP2FP */
33};
34
35static const struct tune_params cortexa53_tunings =
36{
37 &cortexa53_extra_costs,
38 &generic_addrcost_table,
39 &cortexa53_regmove_cost,
40 &generic_vector_cost,
41 &generic_branch_cost,
42 &generic_approx_modes,
43 SVE_NOT_IMPLEMENTED, /* sve_width */
44 { 4, /* load_int. */
45 4, /* store_int. */
46 4, /* load_fp. */
47 4, /* store_fp. */
48 4, /* load_pred. */
49 4 /* store_pred. */
50 }, /* memmov_cost. */
51 2, /* issue_rate */
52 (AARCH64_FUSE_AES_AESMC | AARCH64_FUSE_MOV_MOVK | AARCH64_FUSE_ADRP_ADD
53 | AARCH64_FUSE_MOVK_MOVK | AARCH64_FUSE_ADRP_LDR), /* fusible_ops */
54 "16", /* function_align. */
55 "4", /* jump_align. */
56 "8", /* loop_align. */
57 2, /* int_reassoc_width. */
58 4, /* fp_reassoc_width. */
59 1, /* fma_reassoc_width. */
60 1, /* vec_reassoc_width. */
61 2, /* min_div_recip_mul_sf. */
62 2, /* min_div_recip_mul_df. */
63 0, /* max_case_values. */
64 tune_params::AUTOPREFETCHER_WEAK, /* autoprefetcher_model. */
65 (AARCH64_EXTRA_TUNE_NONE), /* tune_flags. */
66 &generic_prefetch_tune,
67 AARCH64_LDP_STP_POLICY_ALWAYS, /* ldp_policy_model. */
68 AARCH64_LDP_STP_POLICY_ALWAYS /* stp_policy_model. */
69};
70
71#endif /* GCC_AARCH64_H_CORTEXA53. */