arch-arm: Fix some poorly done type max and min in NEON
authorRekai Gonzalez-Alberquilla <rekai.gonzalezalberquilla@arm.com>
Tue, 25 Apr 2017 17:35:54 +0000 (18:35 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 23 May 2017 17:30:03 +0000 (17:30 +0000)
commit1d10cd6185edfd46d51f6562bff832a9b5d36cff
treec722ee2dad7a560b9f1a2fd74e85334238a4df37
parent6914a229a038206341ae1fea46393965a555ca9a
arch-arm: Fix some poorly done type max and min in NEON

The ISA code for ARM calculates min and max elements for types using
bit manipulation. That triggers some warnings, treated as errors, as
the compiler can tell that there is an overflow and the sign
flips. Fixed using standard lib definitions instead.

Change-Id: Ie2331b410c7f76d4bd87da5afe9edf20c8ac91b3
Reviewed-by: Giacomo Gabrielli <giacomo.gabrielli@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3481
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/isa/insts/neon.isa
src/arch/arm/isa/insts/neon64.isa