[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/5] tcg: Remove tcg-runtime-gvec.c DO_CMP0
From: |
Richard Henderson |
Subject: |
[PULL 5/5] tcg: Remove tcg-runtime-gvec.c DO_CMP0 |
Date: |
Tue, 17 Mar 2020 12:00:13 -0700 |
Partial cleanup from the CONFIG_VECTOR16 removal.
Replace DO_CMP0 with its scalar expansion, a simple negation.
Signed-off-by: Richard Henderson <address@hidden>
---
accel/tcg/tcg-runtime-gvec.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/accel/tcg/tcg-runtime-gvec.c b/accel/tcg/tcg-runtime-gvec.c
index f2199f14b4..ca449702e6 100644
--- a/accel/tcg/tcg-runtime-gvec.c
+++ b/accel/tcg/tcg-runtime-gvec.c
@@ -860,15 +860,13 @@ void HELPER(gvec_sar64v)(void *d, void *a, void *b,
uint32_t desc)
clear_high(d, oprsz, desc);
}
-#define DO_CMP0(X) -(X)
-
#define DO_CMP1(NAME, TYPE, OP) \
void HELPER(NAME)(void *d, void *a, void *b, uint32_t desc) \
{ \
intptr_t oprsz = simd_oprsz(desc); \
intptr_t i; \
for (i = 0; i < oprsz; i += sizeof(TYPE)) { \
- *(TYPE *)(d + i) = DO_CMP0(*(TYPE *)(a + i) OP *(TYPE *)(b + i)); \
+ *(TYPE *)(d + i) = -(*(TYPE *)(a + i) OP *(TYPE *)(b + i)); \
} \
clear_high(d, oprsz, desc); \
}
@@ -886,7 +884,6 @@ DO_CMP2(16)
DO_CMP2(32)
DO_CMP2(64)
-#undef DO_CMP0
#undef DO_CMP1
#undef DO_CMP2
--
2.20.1
- [PULL 0/5] tcg patch queue, Richard Henderson, 2020/03/17
- [PULL 1/5] tcg/i386: Bound shift count expanding sari_vec, Richard Henderson, 2020/03/17
- [PULL 2/5] tcg: Remove CONFIG_VECTOR16, Richard Henderson, 2020/03/17
- [PULL 5/5] tcg: Remove tcg-runtime-gvec.c DO_CMP0,
Richard Henderson <=
- [PULL 4/5] tcg: Tidy tcg-runtime-gvec.c DUP*, Richard Henderson, 2020/03/17
- [PULL 3/5] tcg: Tidy tcg-runtime-gvec.c types, Richard Henderson, 2020/03/17
- Re: [PULL 0/5] tcg patch queue, no-reply, 2020/03/17
- Re: [PULL 0/5] tcg patch queue, Peter Maydell, 2020/03/19