From: Wilco Dijkstra Date: Tue, 16 Jul 2019 12:06:55 +0000 (+0000) Subject: Add missing testcase for PR89190 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de2ad117f603491e404acb90510981aa27e087cc;p=gcc.git Add missing testcase for PR89190 testsuite/ PR target/89190 * gcc.target/arm/pr89190.c: New test. From-SVN: r273524 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1f04ebb34a9..fc0b1298148 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-07-16 Wilco Dijkstra + + PR target/89190 + * gcc.target/arm/pr89190.c: New test. + 2019-07-16 Jakub Jelinek PR rtl-optimization/91164 diff --git a/gcc/testsuite/gcc.target/arm/pr89190.c b/gcc/testsuite/gcc.target/arm/pr89190.c new file mode 100644 index 00000000000..e622d7081ed --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/pr89190.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target arm_arch_v8m_base_ok } */ +/* { dg-options "-O2" } */ +/* { dg-add-options arm_arch_v8m_base } */ + +long long a; +int b, c; +int d(int e, int f) { return e << f; } +void g() { + long long h; + char i = d(b >= 7, 2); + c = i == 0 ?: 1 / i; + h = c && a ?: c + a; + b = h; +}