diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 17:37:43 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 17:37:43 +0000 |
commit | 62f068c68b402c2fd9052579a286c8a2ff2f00cd (patch) | |
tree | 8f3867bb3c6f13d9430521cbc54a93b16393ce0b /libgcc | |
parent | 0c51fc2899d523f23a585bf1581e431d44249d2e (diff) | |
download | linaro-gcc-62f068c68b402c2fd9052579a286c8a2ff2f00cd.tar.gz linaro-gcc-62f068c68b402c2fd9052579a286c8a2ff2f00cd.tar.bz2 linaro-gcc-62f068c68b402c2fd9052579a286c8a2ff2f00cd.zip |
libgcc/ChangeLog:
2013-12-09 Uros Bizjak <ubizjak@gmail.com>
* config/i386/sfp-exceptions.c (__sfp_handle_exceptions): Emit SSE
instructions when __TARGET_SSE__ is defined.
libatomic/ChangeLog:
2013-12-09 Uros Bizjak <ubizjak@gmail.com>
* config/x86/fenv.c (__atomic_feraiseexcept): Emit SSE
instructions when __TARGET_SSE__ is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205811 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/i386/sfp-exceptions.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c6b80346095..f83bc889a28 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2013-12-09 Uros Bizjak <ubizjak@gmail.com> + + * config/i386/sfp-exceptions.c (__sfp_handle_exceptions): Emit SSE + instructions when __TARGET_SSE__ is defined. + 2013-12-06 Ralf Corsépius <ralf.corsepius@rtems.org> * config.host (microblaze-*-rtems*): New. diff --git a/libgcc/config/i386/sfp-exceptions.c b/libgcc/config/i386/sfp-exceptions.c index 3504c4aedd1..1bab10b0bdb 100644 --- a/libgcc/config/i386/sfp-exceptions.c +++ b/libgcc/config/i386/sfp-exceptions.c @@ -47,7 +47,7 @@ __sfp_handle_exceptions (int _fex) if (_fex & FP_EX_INVALID) { float f = 0.0f; -#ifdef __x86_64__ +#ifdef __SSE_MATH__ volatile float r __attribute__ ((unused)); asm volatile ("%vdivss\t{%0, %d0|%d0, %0}" : "+x" (f)); r = f; /* Needed to trigger exception. */ @@ -67,7 +67,7 @@ __sfp_handle_exceptions (int _fex) if (_fex & FP_EX_DIVZERO) { float f = 1.0f, g = 0.0f; -#ifdef __x86_64__ +#ifdef __SSE_MATH__ volatile float r __attribute__ ((unused)); asm volatile ("%vdivss\t{%1, %d0|%d0, %1}" : "+x" (f) : "xm" (g)); r = f; /* Needed to trigger exception. */ @@ -95,7 +95,7 @@ __sfp_handle_exceptions (int _fex) if (_fex & FP_EX_INEXACT) { float f = 1.0f, g = 3.0f; -#ifdef __x86_64__ +#ifdef __SSE_MATH__ volatile float r __attribute__ ((unused)); asm volatile ("%vdivss\t{%1, %d0|%d0, %1}" : "+x" (f) : "xm" (g)); r = f; /* Needed to trigger exception. */ |