|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v1 6/7] target-microblaze: dec_barrel: Add BSIFI |
Date: | Tue, 20 Jun 2017 10:48:22 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 06/20/2017 09:09 AM, Edgar E. Iglesias wrote:
+ int width = imm_w - imm_s + 1; + + if (width == 0 || imm_w <= imm_s) {
The width == 0 check is redundant; the imm_w <= imm_s check is wrong. It should be <.
If imm_w >= imm_s, as per the proper check, then width must be >= 1. r~
[Prev in Thread] | Current Thread | [Next in Thread] |