From 3e147937eac9eb182c419a4bd4f5155b341d7188 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 12 Nov 2014 18:56:50 +0000 Subject: [PATCH] Add a testcase for PR tree-optimization/63835 PR tree-optimization/63835 * gcc.dg/pr63835.c: New test. From-SVN: r217441 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr63835.c | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr63835.c 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); +} -- 2.30.2