Hello! > Please find attached the patch "pr16107.patch" that converts the pattern:-cos > (-x) -> cos (x) > Please review and let me know if its okay.
+/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-require-effective-target int32 } */ There are no integers in the testcase. Uros. +#include <math.h> + +double t (double x) +{ + x = -x; + x = cos (x); + return x; +} + +/* { dg-final { scan-tree-dump-not "-x" "optimized" } } */