[AArch64] Enable CCMP support for AArch64, PR64015 resolved
authorZhenqiang Chen <zhenqiang.chen@arm.com>
Fri, 16 Jan 2015 11:48:00 +0000 (11:48 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Fri, 16 Jan 2015 11:48:00 +0000 (11:48 +0000)
commit5f3bc026061e59f2722ae17f2329d005e0f95559
tree27ea8ad4328db1388fa321a414f446c2caef54ef
parentfe23ff4b1ad4bbb359643ca7004b6fdbc63d83df
[AArch64] Enable CCMP support for AArch64, PR64015 resolved

gcc/
2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>

PR target/64015
* ccmp.c (expand_ccmp_next): New function.
(expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
and compare insn sequence.
* config/aarch64/aarch64.c (aarch64_code_to_ccmode,
aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
(TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
* config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
(*ccmp_ior): Changed to ccmp_ior<mode>.
(cmp<mode>): New pattern.
* doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
parameters.
* target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.

gcc/testsuite/
2015-01-16  Zhenqiang Chen <zhenqiang.chen@arm.com>

* gcc.dg/pr64015.c: New test.

From-SVN: r219723
gcc/ChangeLog
gcc/ccmp.c
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md
gcc/doc/tm.texi
gcc/target.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64015.c [new file with mode: 0644]