i386: Remove unneeded assignments when triggering SSE exceptions
authorUros Bizjak <ubizjak@gmail.com>
Sun, 19 Apr 2020 12:23:47 +0000 (14:23 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 19 Apr 2020 12:27:12 +0000 (14:27 +0200)
commitdf73e5842f25aea3bab81c328ed77f16ed261b33
tree33968170cbb9e272b180adf1681270cd4e9b15d7
parent9382018b8b00f3482da0d1bff6012f583ff72f87
i386: Remove unneeded assignments when triggering SSE exceptions

According to "Intel 64 and IA32 Arch SDM, Vol. 3:

"Because SIMD floating-point exceptions are precise and occur immediately,
the situation does not arise where an x87 FPU instruction, a WAIT/FWAIT
instruction, or another SSE/SSE2/SSE3 instruction will catch a pending
unmasked SIMD floating-point exception."

Remove unneeded assignments to volatile memory.

libgcc/ChangeLog:

* config/i386/sfp-exceptions.c (__sfp_handle_exceptions) [__SSE_MATH__]:
Remove unneeded assignments to volatile memory.

libatomic/ChangeLog:

* config/x86/fenv.c (__atomic_feraiseexcept) [__SSE_MATH__]:
Remove unneeded assignments to volatile memory.

libgfortran/ChangeLog:

* config/fpu-387.h (local_feraiseexcept) [__SSE_MATH__]:
Remove unneeded assignments to volatile memory.
libatomic/ChangeLog
libatomic/config/x86/fenv.c
libgcc/ChangeLog
libgcc/config/i386/sfp-exceptions.c
libgfortran/ChangeLog
libgfortran/config/fpu-387.h