This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r228750 - in /trunk/gcc: ChangeLog match.pd rea...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 13 Oct 2015 07:34:42 -0000
- Subject: r228750 - in /trunk/gcc: ChangeLog match.pd rea...
Author: rsandifo
Date: Tue Oct 13 07:34:41 2015
New Revision: 228750
URL: https://gcc.gnu.org/viewcvs?rev=228750&root=gcc&view=rev
Log:
To: gcc-patches@gcc.gnu.org
Subject: Add an extra pow rule to match.pd
From: Richard Sandiford <richard.sandiford@arm.com>
Gcc: private.sent
--text follows this line--
Simplify pow(|x|,y) and pow(-x,y) to pow(x,y) if y is an even integer.
At the moment this duplicates a case in fold_builtin_pow, but an
upcoming patch will move all the fold_builtin_pow rules to match.pd.
I'm doing this one early to fix a regression in builtin-10.c for
soft-float ARM.
gcc/
* real.h (real_isinteger): Declare.
* real.c (real_isinteger): New function.
* match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
if y is an even integer.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/match.pd
trunk/gcc/real.c
trunk/gcc/real.h