qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c
@ 2022-05-02 16:48 Ilya Leoshkevich
  2022-05-03  9:02 ` Thomas Huth
  0 siblings, 1 reply; 11+ messages in thread
From: Ilya Leoshkevich @ 2022-05-02 16:48 UTC (permalink / raw)
  To: Richard Henderson, David Hildenbrand
  Cc: Thomas Huth, qemu-s390x, Christian Borntraeger, qemu-devel,
	Ilya Leoshkevich

Binutils >=2.37 and Clang do not accept (. - 0x100000000) PCRel32
constants. While this looks like a bug that needs fixing, use a
different notation (-0x100000000) as a workaround.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
 tests/tcg/s390x/branch-relative-long.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/tcg/s390x/branch-relative-long.c b/tests/tcg/s390x/branch-relative-long.c
index 94219afcad..8ce9f1c2e5 100644
--- a/tests/tcg/s390x/branch-relative-long.c
+++ b/tests/tcg/s390x/branch-relative-long.c
@@ -13,8 +13,8 @@
         #_name "_end:\n");
 
 DEFINE_ASM(br_r14, "br %r14");
-DEFINE_ASM(brasl_r0, "brasl %r0,.-0x100000000");
-DEFINE_ASM(brcl_0xf, "brcl 0xf,.-0x100000000");
+DEFINE_ASM(brasl_r0, "brasl %r0,-0x100000000");
+DEFINE_ASM(brcl_0xf, "brcl 0xf,-0x100000000");
 
 struct test {
     const char *code;
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-05-04 12:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02 16:48 [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c Ilya Leoshkevich
2022-05-03  9:02 ` Thomas Huth
2022-05-03 19:26   ` Thomas Huth
2022-05-03 22:46     ` Ilya Leoshkevich
2022-05-04  7:01       ` Thomas Huth
2022-05-04  9:07         ` Ilya Leoshkevich
2022-05-04  9:14           ` branch-relative-long fails on s390x host (was: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c) Thomas Huth
2022-05-04  9:37             ` Ilya Leoshkevich
2022-05-04 10:46               ` Thomas Huth
2022-05-04 10:51                 ` Ilya Leoshkevich
2022-05-04 11:24                   ` Ilya Leoshkevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).