• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión6cb1d3b8517572031a22675280ec642972cdb395 (tree)
Tiempo2018-04-06 22:08:50
AutorRichard Henderson <richard.henderson@lina...>
CommiterRichard Henderson

Log Message

tcg: Fix out-of-line generic vector compares

A mistake in the type passed to sizeof, that happens to work
when the out-of-line fallback itself is using host vectors,
but fails when using only the base types.

Tested-by: Emilio G. Cota <cota@braap.org>
Reported-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Cambiar Resumen

Diferencia incremental

--- a/accel/tcg/tcg-runtime-gvec.c
+++ b/accel/tcg/tcg-runtime-gvec.c
@@ -705,7 +705,7 @@ void HELPER(NAME)(void *d, void *a, void *b, uint32_t desc) \
705705 { \
706706 intptr_t oprsz = simd_oprsz(desc); \
707707 intptr_t i; \
708- for (i = 0; i < oprsz; i += sizeof(vec64)) { \
708+ for (i = 0; i < oprsz; i += sizeof(TYPE)) { \
709709 *(TYPE *)(d + i) = DO_CMP0(*(TYPE *)(a + i) OP *(TYPE *)(b + i)); \
710710 } \
711711 clear_high(d, oprsz, desc); \