From: Ilya Leoshkevich Date: Mon, 2 May 2022 16:48:30 +0000 (+0200) Subject: tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c X-Git-Tag: v7.1.0-rc0~117^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5c4d5b3c1cb594e808dd4120cc56ee28fa31dd;p=thirdparty%2Fqemu.git tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c 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 Signed-off-by: Ilya Leoshkevich Message-Id: <20220502164830.1622191-1-iii@linux.ibm.com> Signed-off-by: Thomas Huth --- diff --git a/tests/tcg/s390x/branch-relative-long.c b/tests/tcg/s390x/branch-relative-long.c index 94219afcadc..8ce9f1c2e59 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;