mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 13:25:31 +00:00
tcg: Remove tcg-runtime-gvec.c DO_CMP0
Partial cleanup from the CONFIG_VECTOR16 removal. Replace DO_CMP0 with its scalar expansion, a simple negation. Backports commit 0270bd503e3699b7202200a2d693ad1feb57473f from qemu
This commit is contained in:
parent
6ab9bca262
commit
12d7126443
|
@ -865,15 +865,13 @@ void HELPER(gvec_sar64v)(void *d, void *a, void *b, uint32_t desc)
|
||||||
clear_high(d, oprsz, desc);
|
clear_high(d, oprsz, desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DO_CMP0(X) -(X)
|
|
||||||
|
|
||||||
#define DO_CMP1(NAME, TYPE, OP) \
|
#define DO_CMP1(NAME, TYPE, OP) \
|
||||||
void HELPER(NAME)(void *d, void *a, void *b, uint32_t desc) \
|
void HELPER(NAME)(void *d, void *a, void *b, uint32_t desc) \
|
||||||
{ \
|
{ \
|
||||||
intptr_t oprsz = simd_oprsz(desc); \
|
intptr_t oprsz = simd_oprsz(desc); \
|
||||||
intptr_t i; \
|
intptr_t i; \
|
||||||
for (i = 0; i < oprsz; i += sizeof(TYPE)) { \
|
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); \
|
clear_high(d, oprsz, desc); \
|
||||||
}
|
}
|
||||||
|
@ -891,7 +889,6 @@ DO_CMP2(16)
|
||||||
DO_CMP2(32)
|
DO_CMP2(32)
|
||||||
DO_CMP2(64)
|
DO_CMP2(64)
|
||||||
|
|
||||||
#undef DO_CMP0
|
|
||||||
#undef DO_CMP1
|
#undef DO_CMP1
|
||||||
#undef DO_CMP2
|
#undef DO_CMP2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue