From: Steve Ellcey Date: Thu, 29 Jun 2017 18:23:40 +0000 (+0000) Subject: ccmp_2.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6da4066f343f133670c07cbb199527f549fd261f;p=gcc.git ccmp_2.c: New test. 2017-06-29 Steve Ellcey * gcc.target/aarch64/ccmp_2.c: New test. From-SVN: r249806 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d44f1a14862..8aba9c2fd41 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-06-29 Steve Ellcey + + * gcc.target/aarch64/ccmp_2.c: New test. + 2017-06-29 Nathan Sidwell PR c++/81247 diff --git a/gcc/testsuite/gcc.target/aarch64/ccmp_2.c b/gcc/testsuite/gcc.target/aarch64/ccmp_2.c new file mode 100644 index 00000000000..77ab0207886 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/ccmp_2.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +int g(void); +int h(int a, _Bool c) +{ + if (a != 0 && c) + return g(); + return 1; +} + +/* { dg-final { scan-assembler "\tccmp\t" } } */