arm: fix thinko in arm_bfi_1_p() [PR105974]
authorRichard Earnshaw <rearnsha@arm.com>
Wed, 15 Jun 2022 12:42:23 +0000 (13:42 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Wed, 15 Jun 2022 12:43:25 +0000 (13:43 +0100)
commitdc8071da0e89eab4935751f3b16745c95cbc0d30
treef6cd7e65c8d35a40c7eaffc7a7afa166801b3d76
parent57b2adae536a6399ed7d2c881b1bc0d4b88e936a
arm: fix thinko in arm_bfi_1_p() [PR105974]

I clearly wasn't thinking straight when I wrote the arm_bfi_1_p
function and used XUINT rather than UINTVAL when extracting CONST_INT
values.  It seemed to work in testing, but was incorrect and failed
RTL checking.

Fixed thusly:

gcc/ChangeLog:

PR target/105974
* config/arm/arm.cc (arm_bfi_1_p): Use UINTVAL instead of XUINT.
gcc/config/arm/arm.cc