From: H.J. Lu Date: Wed, 12 Nov 2014 18:56:50 +0000 (+0000) Subject: Add a testcase for PR tree-optimization/63835 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e147937eac9eb182c419a4bd4f5155b341d7188;p=gcc.git Add a testcase for PR tree-optimization/63835 PR tree-optimization/63835 * gcc.dg/pr63835.c: New test. From-SVN: r217441 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5478e501010..3c53939083b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-12 H.J. Lu + + PR tree-optimization/63835 + * gcc.dg/pr63835.c: New test. + 2014-11-12 Alan Lawrence * gcc.target/aarch64/simd/vqdmlal_high_lane_s16_indices_1.c: New test. diff --git a/gcc/testsuite/gcc.dg/pr63835.c b/gcc/testsuite/gcc.dg/pr63835.c new file mode 100644 index 00000000000..435966b1907 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr63835.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-Os" } */ + +int a; + +int +fn1 (int p) +{ + return -p; +} + +void +fn2 () +{ + fn1 (-(unsigned int) a); +}