re PR target/49030 (ICE in get_arm_condition_code, at config/arm/arm.c:17180)
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 7 Sep 2011 13:48:03 +0000 (13:48 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 7 Sep 2011 13:48:03 +0000 (13:48 +0000)
commit723d95fe2b71f3bca4fbed6a1e4945d794f4698c
treeb14332fa27f780ac19d23e5c349f660b387fca7a
parentb7b1babae9578b47dfcbae36164d3da72dd17525
re PR target/49030 (ICE in get_arm_condition_code, at config/arm/arm.c:17180)

gcc/
PR target/49030
* config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
* config/arm/arm.c (maybe_get_arm_condition_code): New function,
reusing the old code from get_arm_condition_code.  Return ARM_NV
for invalid comparison codes.
(get_arm_condition_code): Redefine in terms of
maybe_get_arm_condition_code.
* config/arm/predicates.md (arm_comparison_operator): Use
maybe_get_arm_condition_code.

gcc/testsuite/
PR target/49030
* gcc.dg/torture/pr49030.c: New test.

From-SVN: r178636
gcc/ChangeLog
gcc/config/arm/arm-protos.h
gcc/config/arm/arm.c
gcc/config/arm/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr49030.c [new file with mode: 0644]