Re: [PATCH 1/1] target-ppc: fix rlwimi, rlwinm, rlwnm for Clang-9

2020-05-05 Thread David Gibson
On Tue, May 05, 2020 at 08:26:48AM -0400, Daniele Buono wrote: > On 5/5/2020 1:08 AM, David Gibson wrote: > > On Fri, May 01, 2020 at 03:09:13PM -0400, Daniele Buono wrote: > > > Starting with Clang v9, -Wtype-limits is implemented and triggers a > > > few "result of comparison is always true" erro

Re: [PATCH 1/1] target-ppc: fix rlwimi, rlwinm, rlwnm for Clang-9

2020-05-05 Thread Daniele Buono
On 5/5/2020 1:08 AM, David Gibson wrote: On Fri, May 01, 2020 at 03:09:13PM -0400, Daniele Buono wrote: Starting with Clang v9, -Wtype-limits is implemented and triggers a few "result of comparison is always true" errors when compiling PPC32 targets. The comparisons seem to be necessary only on

Re: [PATCH 1/1] target-ppc: fix rlwimi, rlwinm, rlwnm for Clang-9

2020-05-04 Thread David Gibson
On Fri, May 01, 2020 at 03:09:13PM -0400, Daniele Buono wrote: > Starting with Clang v9, -Wtype-limits is implemented and triggers a > few "result of comparison is always true" errors when compiling PPC32 > targets. > > The comparisons seem to be necessary only on PPC64, since the > else branch in