[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-rela
From: |
Ilya Leoshkevich |
Subject: |
[PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c |
Date: |
Mon, 2 May 2022 18:48:30 +0200 |
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
- [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c,
Ilya Leoshkevich <=
- Re: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c, Thomas Huth, 2022/05/03
- Re: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c, Thomas Huth, 2022/05/03
- Re: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c, Ilya Leoshkevich, 2022/05/03
- Re: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c, Thomas Huth, 2022/05/04
- Re: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c, Ilya Leoshkevich, 2022/05/04
- 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
- Re: branch-relative-long fails on s390x host (was: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c), Ilya Leoshkevich, 2022/05/04
- Re: 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
- Re: branch-relative-long fails on s390x host (was: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c), Ilya Leoshkevich, 2022/05/04
- Re: branch-relative-long fails on s390x host (was: [PATCH] tests/tcg/s390x: Use a different PCRel32 notation in branch-relative-long.c), Ilya Leoshkevich, 2022/05/04