[ARM] PR 65694: Properly sign-extend large numbers before passing to GEN_INT in arm_c...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 10 Apr 2015 16:20:35 +0000 (16:20 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 10 Apr 2015 16:20:35 +0000 (16:20 +0000)
commit954873472d77d260530b9f2b6fe587594f2665c4
treedcb9c93697a06ecd4ad382cef56d202d65a7460a
parent6a65cb99fd5874b0639315b042b0bce5f9b2d29a
[ARM] PR 65694: Properly sign-extend large numbers before passing to GEN_INT in arm_canonicalize_comparison

PR target/65694
* config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
when creating +1 values for SImode.

PR target/65694
* g++.dg/torture/pr65694.C: New test.

From-SVN: r221976
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr65694.C [new file with mode: 0644]