* builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
fabs(x)*sqrt(2). * fold-const.c (fold_binary): Fix comment typos. Fold complex (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y). testsuite: * gcc.dg/builtins-54.c: Add more cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121542 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 7 additions, 0 deletionsgcc/ChangeLog
- gcc/builtins.c 24 additions, 7 deletionsgcc/builtins.c
- gcc/fold-const.c 39 additions, 2 deletionsgcc/fold-const.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/builtins-54.c 108 additions, 6 deletionsgcc/testsuite/gcc.dg/builtins-54.c
Loading
Please register or sign in to comment