[PATCH][AArch64] Fix generation of tst (PR87763)
authorWilco Dijkstra <wdijkstr@arm.com>
Fri, 25 Jan 2019 13:29:06 +0000 (13:29 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Fri, 25 Jan 2019 13:29:06 +0000 (13:29 +0000)
commitf73dc006049cd217fdd2fa943b861ad9f517aa66
tree0e78f46d34616689a142cafe5f64d7bc16046651
parentcb1ba35f582f07096a045574b571576bdcc439a9
[PATCH][AArch64] Fix generation of tst (PR87763)

The TST instruction no longer matches in all cases due to changes in
Combine.  The fix is simple, we now need to allow a subreg as well when
selecting the cc_mode.  This fixes the tst_5.c and tst_6.c failures.

AArch64 regress & bootstrap OK.

PR rtl-optimization/87763
* config/aarch64/aarch64.c (aarch64_select_cc_mode):
Allow SUBREG when matching CC_NZmode compare.

From-SVN: r268265
gcc/ChangeLog
gcc/config/aarch64/aarch64.c