expmed.h (canonicalize_comparison): New declaration.
authorVlad Lazar <vlad.lazar@arm.com>
Thu, 16 Aug 2018 16:33:43 +0000 (16:33 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 16 Aug 2018 16:33:43 +0000 (10:33 -0600)
commitec18e48eaa0d7e06d46c7b544508a191d11a8921
treeab7980e4a0ea136a6da132a6eaa6bd5bad54c76d
parent891b1d6872ecf18ccf605d036f8f01dec32d66a4
expmed.h (canonicalize_comparison): New declaration.

* expmed.h (canonicalize_comparison): New declaration.
* expmed.c (canonicalize_comparison, equivalent_cmp_code): New function.
* expmed.c (emit_store_flag_1): Add call to canonicalize_comparison.
* optabs.c (prepare_cmp_insn): Likewise.
* rtl.h (unsigned_condition_p): New function which checks if a
comparison operator is unsigned.

* gcc.target/aarch64/imm_choice_comparison.c: New test.

From-SVN: r263591
gcc/ChangeLog
gcc/expmed.c
gcc/expmed.h
gcc/optabs.c
gcc/rtl.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/imm_choice_comparison.c [new file with mode: 0644]