Fix PR tree-optimization/20490
not 20940
From-SVN: r96561
2005-03-16 Daniel Berlin <dberlin@dberlin.org>
- Fix PR tree-optimization/20940
+ Fix PR tree-optimization/20490
* tree-ssa-pre.c (create_expression_by_pieces): Use
force_gimple_operand on result of fold.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -ftree-pre" } */
+static int a;
+static int b;
+
+typedef int gint;
+
+int blah ()
+{
+ gint x = a;
+ gint y = b;
+
+ x *= (x < 0) ? -1 : 0;
+ y *= (y < 0) ? -1 : 0;
+
+ return (y * x);
+
+}
+
+
+++ /dev/null
-/* { dg-do compile } */
-/* { dg-options "-O -ftree-pre" } */
-static int a;
-static int b;
-
-typedef int gint;
-
-int blah ()
-{
- gint x = a;
- gint y = b;
-
- x *= (x < 0) ? -1 : 0;
- y *= (y < 0) ? -1 : 0;
-
- return (y * x);
-
-}
-
-