diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2014-12-03 16:25:25 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2014-12-03 16:25:25 +0000 |
commit | f577844da99285ae853496b63217c16fdb017e56 (patch) | |
tree | b29c690c7d45d641edcc74636368bb9ab7a954f3 /gcc/config/epiphany/epiphany.c | |
parent | 028c9c9ed7b71ed186829471b7b704ddfb0c5e26 (diff) | |
download | gcc-f577844da99285ae853496b63217c16fdb017e56.zip gcc-f577844da99285ae853496b63217c16fdb017e56.tar.gz gcc-f577844da99285ae853496b63217c16fdb017e56.tar.bz2 |
epiphany.c (epiphany_override_options): If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
gcc:
* config/epiphany/epiphany.c (epiphany_override_options):
If TARGET_SOFT_CMPSF is not enabled, set flag_finite_math_only.
* config/epiphany/epiphany.md (mov<mode>cc): Don't use
reverse_condition_maybe_unordered if flag_finite_math_only is set.
gcc/testsuite:
* gcc.target/epiphany/fcmp-1.c: New test.
From-SVN: r218323
Diffstat (limited to 'gcc/config/epiphany/epiphany.c')
-rw-r--r-- | gcc/config/epiphany/epiphany.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c index 3890149..92024aa 100644 --- a/gcc/config/epiphany/epiphany.c +++ b/gcc/config/epiphany/epiphany.c @@ -1542,6 +1542,8 @@ epiphany_override_options (void) if (epiphany_stack_offset & 3) error ("stack_offset must be a multiple of 4"); epiphany_stack_offset = (epiphany_stack_offset + 3) & -4; + if (!TARGET_SOFT_CMPSF) + flag_finite_math_only = 1; /* This needs to be done at start up. It's convenient to do it here. */ epiphany_init (); |