diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2015-05-01 12:54:22 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2015-05-01 12:54:22 +0000 |
commit | 5e2a765beeea16ed8250e33de74e6907c5bd5994 (patch) | |
tree | df2ed24d108bb2ffcfbea78391a1cf81bb13ff43 /gcc/config | |
parent | 23cb6618889371ea86f52cbdcda23765d4bda91f (diff) | |
download | gcc-5e2a765beeea16ed8250e33de74e6907c5bd5994.zip gcc-5e2a765beeea16ed8250e33de74e6907c5bd5994.tar.gz gcc-5e2a765beeea16ed8250e33de74e6907c5bd5994.tar.bz2 |
[AArch64] Handle FLOAT and UNSIGNED_FLOAT in rtx costs
* config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
UNSIGNED_FLOAT.
From-SVN: r222677
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index eed37db..94bdac7 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -6405,6 +6405,12 @@ cost_plus: *cost += rtx_cost (op2, FMA, 2, speed); return true; + case FLOAT: + case UNSIGNED_FLOAT: + if (speed) + *cost += extra_cost->fp[mode == DFmode].fromint; + return false; + case FLOAT_EXTEND: if (speed) *cost += extra_cost->fp[mode == DFmode].widen; |