[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 05/20: Fix compile warnings for 32-bit tests
From: |
Andy Wingo |
Subject: |
[Guile-commits] 05/20: Fix compile warnings for 32-bit tests |
Date: |
Sun, 28 Apr 2019 07:54:19 -0400 (EDT) |
wingo pushed a commit to branch lightening
in repository guile.
commit b1163145915e652c4b82b66b1e921c811a90c46a
Author: Andy Wingo <address@hidden>
Date: Fri Apr 26 15:56:08 2019 +0200
Fix compile warnings for 32-bit tests
---
tests/boaddr_u.c | 2 +-
tests/bxaddr_u.c | 2 +-
tests/ldi_l.c | 4 ++--
tests/ldi_ui.c | 4 ++--
tests/ldr_l.c | 4 ++--
tests/ldr_ui.c | 4 ++--
tests/ldxi_l.c | 4 ++--
tests/ldxi_ui.c | 4 ++--
tests/ldxr_l.c | 4 ++--
tests/ldxr_ui.c | 4 ++--
tests/sti_l.c | 4 ++--
tests/str_l.c | 4 ++--
tests/stxi_l.c | 4 ++--
tests/stxr_l.c | 4 ++--
14 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/tests/boaddr_u.c b/tests/boaddr_u.c
index 4835857..b186a90 100644
--- a/tests/boaddr_u.c
+++ b/tests/boaddr_u.c
@@ -24,7 +24,7 @@ run_test(jit_state_t *j, uint8_t *arena_base, size_t
arena_size)
ASSERT(f(0xffffffff, 0xffffffff) == overflowed);
ASSERT(f(0x7fffffff, 0) == 0x7fffffff);
ASSERT(f(0x7fffffff, 1) == 0x80000000);
- ASSERT(f(0x7fffffff, 0x7fffffff) == 0x7fffffff + 0x7fffffff);
+ ASSERT(f(0x7fffffff, 0x7fffffff) == 0x7fffffffu + 0x7fffffffu);
ASSERT(f(0x7fffffff, 0x80000000) == 0xffffffff);
ASSERT(f(0x80000000, 0x80000000) == overflowed);
#else
diff --git a/tests/bxaddr_u.c b/tests/bxaddr_u.c
index e30ca2a..b20ddd0 100644
--- a/tests/bxaddr_u.c
+++ b/tests/bxaddr_u.c
@@ -23,7 +23,7 @@ run_test(jit_state_t *j, uint8_t *arena_base, size_t
arena_size)
ASSERT(f(0xffffffff, 0xffffffff) == overflowed);
ASSERT(f(0x7fffffff, 0) == 0x7fffffff);
ASSERT(f(0x7fffffff, 1) == 0x80000000);
- ASSERT(f(0x7fffffff, 0x7fffffff) == 0x7fffffff + 0x7fffffff);
+ ASSERT(f(0x7fffffff, 0x7fffffff) == 0x7fffffffu + 0x7fffffffu);
ASSERT(f(0x7fffffff, 0x80000000) == 0xffffffff);
ASSERT(f(0x80000000, 0x80000000) == overflowed);
#else
diff --git a/tests/ldi_l.c b/tests/ldi_l.c
index f18ba20..1cb5efd 100644
--- a/tests/ldi_l.c
+++ b/tests/ldi_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data = 0xffffffffffffffff;
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data = 0xffffffffffffffff;
+
jit_begin(j, arena_base, arena_size);
jit_ldi_l(j, JIT_R0, &data);
diff --git a/tests/ldi_ui.c b/tests/ldi_ui.c
index 2f7dc5f..47fe278 100644
--- a/tests/ldi_ui.c
+++ b/tests/ldi_ui.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
+
jit_begin(j, arena_base, arena_size);
jit_ldi_ui(j, JIT_R0, data);
diff --git a/tests/ldr_l.c b/tests/ldr_l.c
index 76b6d7f..6a3d0fc 100644
--- a/tests/ldr_l.c
+++ b/tests/ldr_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data[] = { 0xffffffffffffffff, 0, 0x4242424212345678 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data[] = { 0xffffffffffffffff, 0, 0x4242424212345678 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_1(j, jit_operand_gpr (JIT_OPERAND_ABI_POINTER, JIT_R1));
diff --git a/tests/ldr_ui.c b/tests/ldr_ui.c
index 4d29a74..85a462c 100644
--- a/tests/ldr_ui.c
+++ b/tests/ldr_ui.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_1(j, jit_operand_gpr (JIT_OPERAND_ABI_POINTER, JIT_R1));
diff --git a/tests/ldxi_l.c b/tests/ldxi_l.c
index a90653c..6383166 100644
--- a/tests/ldxi_l.c
+++ b/tests/ldxi_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data[] = { 0xffffffffffffffff, 0, 0x4242424212345678 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data[] = { 0xffffffffffffffff, 0, 0x4242424212345678 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_1(j, jit_operand_gpr (JIT_OPERAND_ABI_WORD, JIT_R0));
diff --git a/tests/ldxi_ui.c b/tests/ldxi_ui.c
index d6693fe..00a4759 100644
--- a/tests/ldxi_ui.c
+++ b/tests/ldxi_ui.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_1(j, jit_operand_gpr (JIT_OPERAND_ABI_WORD, JIT_R0));
diff --git a/tests/ldxr_l.c b/tests/ldxr_l.c
index 14786aa..d143ede 100644
--- a/tests/ldxr_l.c
+++ b/tests/ldxr_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data[] = { 0xffffffffffffffff, 0, 0x4242424212345678 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data[] = { 0xffffffffffffffff, 0, 0x4242424212345678 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_2(j, jit_operand_gpr (JIT_OPERAND_ABI_POINTER, JIT_R0),
jit_operand_gpr (JIT_OPERAND_ABI_WORD, JIT_R1));
diff --git a/tests/ldxr_ui.c b/tests/ldxr_ui.c
index 773fccd..0c821ee 100644
--- a/tests/ldxr_ui.c
+++ b/tests/ldxr_ui.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint32_t data[] = { 0xffffffff, 0x00000000, 0x42424242 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_2(j, jit_operand_gpr (JIT_OPERAND_ABI_POINTER, JIT_R0),
jit_operand_gpr (JIT_OPERAND_ABI_WORD, JIT_R1));
diff --git a/tests/sti_l.c b/tests/sti_l.c
index 5bd4ed1..939a3e8 100644
--- a/tests/sti_l.c
+++ b/tests/sti_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_1(j, jit_operand_gpr (JIT_OPERAND_ABI_INT64, JIT_R1));
diff --git a/tests/str_l.c b/tests/str_l.c
index 0b4755c..ff91a18 100644
--- a/tests/str_l.c
+++ b/tests/str_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_2(j, jit_operand_gpr (JIT_OPERAND_ABI_POINTER, JIT_R0),
jit_operand_gpr (JIT_OPERAND_ABI_INT64, JIT_R1));
diff --git a/tests/stxi_l.c b/tests/stxi_l.c
index b5f5d8c..af62d7d 100644
--- a/tests/stxi_l.c
+++ b/tests/stxi_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_2(j, jit_operand_gpr (JIT_OPERAND_ABI_WORD, JIT_R2),
jit_operand_gpr (JIT_OPERAND_ABI_INT64, JIT_R1));
diff --git a/tests/stxr_l.c b/tests/stxr_l.c
index bc0ab96..43c08d5 100644
--- a/tests/stxr_l.c
+++ b/tests/stxr_l.c
@@ -1,11 +1,11 @@
#include "test.h"
-static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
-
static void
run_test(jit_state_t *j, uint8_t *arena_base, size_t arena_size)
{
#if __WORDSIZE > 32
+ static uint64_t data[] = { 0x1212121212121212, 0, 0x3434343434343434 };
+
jit_begin(j, arena_base, arena_size);
jit_load_args_3(j, jit_operand_gpr (JIT_OPERAND_ABI_POINTER, JIT_R0),
jit_operand_gpr (JIT_OPERAND_ABI_WORD, JIT_R2),
- [Guile-commits] 09/20: Remove most __X64_32 code, (continued)
- [Guile-commits] 09/20: Remove most __X64_32 code, Andy Wingo, 2019/04/28
- [Guile-commits] 10/20: Add facility to enter and leave JIT ABI, Andy Wingo, 2019/04/28
- [Guile-commits] 03/20: Fix lightening to compile on 32-bit x86, Andy Wingo, 2019/04/28
- [Guile-commits] 13/20: Fix ABI of arg to extr_d_f test, Andy Wingo, 2019/04/28
- [Guile-commits] 12/20: Fix jit_leave_jit_abi to pop correct registers, Andy Wingo, 2019/04/28
- [Guile-commits] 08/20: Simplify 64/32 concerns in x86-cpu.c, Andy Wingo, 2019/04/28
- [Guile-commits] 07/20: Make jit_cpu private, Andy Wingo, 2019/04/28
- [Guile-commits] 11/20: Small bug fixes for ia32, Andy Wingo, 2019/04/28
- [Guile-commits] 01/20: Inline some internal definitions into backend-specific files, Andy Wingo, 2019/04/28
- [Guile-commits] 02/20: Account for saved return address when locating args, Andy Wingo, 2019/04/28
- [Guile-commits] 05/20: Fix compile warnings for 32-bit tests,
Andy Wingo <=
- [Guile-commits] 06/20: Fix 32-bit movi_d, Andy Wingo, 2019/04/28