hppa: Fix bug in atomic_storedi_1 pattern
commitf26094751ebd8f8603a0e62a8f1aab6a99c932e9
authorJohn David Anglin <danglin@gcc.gnu.org>
Thu, 1 Feb 2024 18:46:47 +0000 (1 18:46 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 1 Feb 2024 18:48:34 +0000 (1 18:48 +0000)
tree33523cd298a9ab5f5bda87c12b13d83e79306b22
parent3ba5be16a2be3eaedf2870ca1e25cfe826945948
hppa: Fix bug in atomic_storedi_1 pattern

The first alternative stores the floating-point status register
in the destination.  It should store zero.  We need to copy %fr0
to another floating-point register to initialize it to zero.

2024-02-01  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa.md (atomic_storedi_1): Fix bug in
alternative 1.
gcc/config/pa/pa.md