aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2019-12-12 09:42:10 +0100
committerClaudiu Zissulescu <claziss@gcc.gnu.org>2019-12-12 09:42:10 +0100
commit48f13fb118fe82efebf8fcec3a42be89486ec2dc (patch)
tree0179de7b10897cae06d25c11d003fa7d9bc9a075
parent5345a1906a5dbdcbc7c528cb2400a4e78b441b0e (diff)
downloadgcc-48f13fb118fe82efebf8fcec3a42be89486ec2dc.zip
gcc-48f13fb118fe82efebf8fcec3a42be89486ec2dc.tar.gz
gcc-48f13fb118fe82efebf8fcec3a42be89486ec2dc.tar.bz2
[ARC] Use hardware support for double-precision compare instructions.
Allow the compiler to use the double-precision compare instructions. xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE. (cstoredi4): Use TARGET_HARD_FLOAT. From-SVN: r279273
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arc/arc.md4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 99ba387..b0e8e39 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-12 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
+ (cstoredi4): Use TARGET_HARD_FLOAT.
+
2019-12-11 Jakub Jelinek <jakub@redhat.com>
* opts.c (default_options_table): Move -ftree-loop-distribute-patterns
diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
index 6b4ed0e..2cbb6ac 100644
--- a/gcc/config/arc/arc.md
+++ b/gcc/config/arc/arc.md
@@ -3747,7 +3747,7 @@ core_3, archs4x, archs4xd, archs4xd_slow"
})
(define_mode_iterator SDF [(SF "TARGET_FP_SP_BASE || TARGET_OPTFPE")
- (DF "TARGET_OPTFPE")])
+ (DF "TARGET_FP_DP_BASE || TARGET_OPTFPE")])
(define_expand "cstore<mode>4"
[(set (reg:CC CC_REG)
@@ -3757,7 +3757,7 @@ core_3, archs4x, archs4xd, archs4xd_slow"
(match_operator:SI 1 "comparison_operator" [(reg CC_REG)
(const_int 0)]))]
- "TARGET_FP_SP_BASE || TARGET_OPTFPE"
+ "TARGET_HARD_FLOAT || TARGET_OPTFPE"
{
gcc_assert (XEXP (operands[1], 0) == operands[2]);
gcc_assert (XEXP (operands[1], 1) == operands[3]);