fix some oss-fuzz (#1255)

* fix oss-fuzz 22107.

* fix oss-fuzz 22112.

* clean up build target.
This commit is contained in:
Chen Huitao 2020-05-12 01:27:47 +08:00 committed by GitHub
parent f988a41369
commit 18a187b8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ uint32_t HELPER(neon_tbl)(CPUARMState *env, uint32_t ireg, uint32_t def,
tmp = (table[index >> 3] >> ((index & 7) << 3)) & 0xff;
val |= tmp << shift;
} else {
val |= def & (0xff << shift);
val |= def & (0xffU << shift);
}
}
return val;

View File

@ -363,7 +363,7 @@ static inline int satsw(int x)
#define FCMPGTL(a, b) ((int32_t)(a) > (int32_t)(b) ? -1 : 0)
#define FCMPEQ(a, b) ((a) == (b) ? -1 : 0)
#define FMULLW(a, b) ((a) * (b))
#define FMULLW(a, b) ((int64_t)(a) * (b))
#define FMULHRW(a, b) (((int16_t)(a) * (int16_t)(b) + 0x8000) >> 16)
#define FMULHUW(a, b) ((a) * (b) >> 16)
#define FMULHW(a, b) ((int16_t)(a) * (int16_t)(b) >> 16)

Binary file not shown.