|
From: | Richard Henderson |
Subject: | Re: [PATCH 2/4] target/arm: Implement SVE2 RADDHNB, RADDHNT |
Date: | Fri, 17 Apr 2020 14:24:17 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 4/17/20 9:22 AM, Stephen Long wrote: > +#define DO_RADDHN(N, M, SH) ((N + M + (1 << (SH - 1))) >> SH) This formula will overflow. See DO_RSHR -- with some added parenthesis, we could actually reuse that macro. r~
[Prev in Thread] | Current Thread | [Next in Thread] |