summaryrefslogtreecommitdiff
path: root/sysdeps/sh/sh4/fpu/ftestexcept.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-06-09 18:36:52 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-06-09 18:36:52 +0200
commit366af02c96eea0a03ccd2fa187819d866ac49ba2 (patch)
treedc33d3527aa16bd63da3405b7c074fea08282e5f /sysdeps/sh/sh4/fpu/ftestexcept.c
parent793ea8518ff2df20ecbb3fa1c4158b06b653a535 (diff)
downloadglibc-366af02c96eea0a03ccd2fa187819d866ac49ba2.tar.gz
SH: Do not re-write fpscr after reading it.
Diffstat (limited to 'sysdeps/sh/sh4/fpu/ftestexcept.c')
-rw-r--r--sysdeps/sh/sh4/fpu/ftestexcept.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sysdeps/sh/sh4/fpu/ftestexcept.c b/sysdeps/sh/sh4/fpu/ftestexcept.c
index c61af4ce0a..8f0961148f 100644
--- a/sysdeps/sh/sh4/fpu/ftestexcept.c
+++ b/sysdeps/sh/sh4/fpu/ftestexcept.c
@@ -26,9 +26,6 @@ fetestexcept (int excepts)
/* Get current exceptions. */
_FPU_GETCW (temp);
- /* When read fpscr, this was initialized.
- We need to rewrite value of temp. */
- _FPU_SETCW (temp);
return temp & excepts & FE_ALL_EXCEPT;
}