[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6] tests/tcg/aarch64: Fix irg operand type
From: |
Akihiko Odaki |
Subject: |
[PATCH 4/6] tests/tcg/aarch64: Fix irg operand type |
Date: |
Wed, 26 Jun 2024 20:26:25 +0900 |
irg expects 64-bit integers. Passing a 32-bit integer results in
compilation failure with clang version 18.1.6.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
tests/tcg/aarch64/mte-1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/tcg/aarch64/mte-1.c b/tests/tcg/aarch64/mte-1.c
index 88dcd617addc..146cad4a0499 100644
--- a/tests/tcg/aarch64/mte-1.c
+++ b/tests/tcg/aarch64/mte-1.c
@@ -15,7 +15,7 @@ int main(int ac, char **av)
enable_mte(PR_MTE_TCF_NONE);
p0 = alloc_mte_mem(sizeof(*p0));
- asm("irg %0,%1,%2" : "=r"(p1) : "r"(p0), "r"(1));
+ asm("irg %0,%1,%2" : "=r"(p1) : "r"(p0), "r"(1l));
assert(p1 != p0);
asm("subp %0,%1,%2" : "=r"(c) : "r"(p0), "r"(p1));
assert(c == 0);
--
2.45.2
- [PATCH 0/6] tests/tcg/aarch64: Fix inline assemblies for clang, Akihiko Odaki, 2024/06/26
- [PATCH 1/6] tests/tcg/arm: Fix fcvt result messages, Akihiko Odaki, 2024/06/26
- [PATCH 3/6] tests/tcg/aarch64: Explicitly specify register width, Akihiko Odaki, 2024/06/26
- [PATCH 2/6] tests/tcg/aarch64: Fix test architecture specification, Akihiko Odaki, 2024/06/26
- [PATCH 5/6] tests/tcg/aarch64: Do not use x constraint, Akihiko Odaki, 2024/06/26
- [PATCH 6/6] tests/tcg/arm: Manually bit-cast half-precision numbers, Akihiko Odaki, 2024/06/26
- [PATCH 4/6] tests/tcg/aarch64: Fix irg operand type,
Akihiko Odaki <=
- Re: [PATCH 0/6] tests/tcg/aarch64: Fix inline assemblies for clang, Alex Bennée, 2024/06/26