* see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
sharing.
* gcc.c-torture/compile/
20080522-1.c: New testcase.
From-SVN: r135770
+2008-05-22 Rafael Espindola <espindola@google.com>
+
+ * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
+ sharing.
+
2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
* defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
edge eg = INDEX_EDGE (edge_list, e);
start_sequence ();
- emit_insn (PATTERN (expr->se_insn));
+ emit_insn (copy_insn (PATTERN (expr->se_insn)));
se_insn = get_insns ();
end_sequence ();
+2008-05-22 Rafael Espindola <espindola@google.com>
+
+ * gcc.c-torture/compile/20080522-1.c: New testcase.
+
2008-05-22 Richard Guenther <rguenther@suse.de>
* gcc.c-torture/execute/20080522-1.c: New testcase.
--- /dev/null
+/* { dg-do compile }
+/* { dg-options "-O2 -fsee" } */
+
+int f(const char* ptr, int bar) {
+ return (((const char *)0 - ptr ) & (bar - 1)) == 0;
+}
+
+
+int g(const char* ptr, const char *test, int N, int bar) {
+ if (N == 0) {
+ }
+ else if (N > 0) {
+ int count = 0;
+ while ( count < N) {
+ if (!f(ptr, bar))
+ count++;
+ }
+ }
+ return f(test, bar) ;
+}