diff options
author | Bruno Haible <bruno@clisp.org> | 2023-11-02 11:23:48 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-12-19 15:12:38 -0300 |
commit | 80a40a9e14d9a01e3f70c5b37ecd1da83033b6de (patch) | |
tree | 642965a923873f999011f89cf137880a5d154207 /sysdeps | |
parent | 802aef27b2d9f04b06344706f88d37bbe89629e9 (diff) | |
download | glibc-80a40a9e14d9a01e3f70c5b37ecd1da83033b6de.tar.gz glibc-80a40a9e14d9a01e3f70c5b37ecd1da83033b6de.tar.xz glibc-80a40a9e14d9a01e3f70c5b37ecd1da83033b6de.zip |
alpha: Fix fesetexceptflag (BZ 30998)
It clears some exception flags that are outside the EXCEPTS argument. It fixes math/test-fexcept on qemu-user. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/alpha/fpu/fsetexcptflg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/alpha/fpu/fsetexcptflg.c b/sysdeps/alpha/fpu/fsetexcptflg.c index 70f3666a6e..63eb06845d 100644 --- a/sysdeps/alpha/fpu/fsetexcptflg.c +++ b/sysdeps/alpha/fpu/fsetexcptflg.c @@ -27,7 +27,7 @@ __fesetexceptflag (const fexcept_t *flagp, int excepts) tmp = __ieee_get_fp_control (); /* Set all the bits that were called for. */ - tmp = (tmp & ~SWCR_STATUS_MASK) | (*flagp & excepts & SWCR_STATUS_MASK); + tmp ^= (tmp ^ *flagp) & excepts & SWCR_STATUS_MASK; /* And store it back. */ __ieee_set_fp_control (tmp); |