From 6da4066f343f133670c07cbb199527f549fd261f Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Thu, 29 Jun 2017 18:23:40 +0000 Subject: [PATCH] ccmp_2.c: New test. 2017-06-29 Steve Ellcey * gcc.target/aarch64/ccmp_2.c: New test. From-SVN: r249806 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/aarch64/ccmp_2.c | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.target/aarch64/ccmp_2.c 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" } } */ -- 2.30.2