s390x: Replace absolute jump for a relative one
commit5a97c06080078aab8adfcc8985aecce7bfa5a738
authorTulio Magno Quites Machado Filho <tuliom@redhat.com>
Wed, 14 Jun 2023 14:28:38 +0000 (14 11:28 -0300)
committerMark Wielaard <mark@klomp.org>
Thu, 15 Jun 2023 15:01:18 +0000 (15 17:01 +0200)
tree97d18cc671ada2635c9c141bec35ece813b3debf
parent3df8a00a4ed7dbe436f28d8b3db72e679eb1b427
s390x: Replace absolute jump for a relative one

The bne instruction expects an absolute target address and it isn't
best-suited for implementing a short range jump, such as the one in
XCHG_M_R().
Replace it with jne which expects a relative address that can be
correctly computed a link time.

Interestingly, the jump is almost never taken. If it would, this would
crash the test.  However, linkers may complain when relacating the
target address used in bne.
helgrind/tests/tc11_XCHG.c