David,

I think this could be added to the pr71779 test case:



  test_pr71779 ()
  {
    /* Only run this tests for target==aarch64.  */
  #ifndef GCC_AARCH64_H
+#ifndef I386_OPTS_H
    return;
+#endif
  #endif

    rtl_dump_test t (SELFTEST_LOCATION, locate_file ("pr71779.rtl"));
    dataflow_test df_test;

    tem = cse_main (get_insns (), max_reg_num ());
    ASSERT_EQ (0, tem);
+  ASSERT_FALSE (REG_POINTER (SET_DEST (PATTERN (get_insn_by_uid (1047)))));
  }


at least last time when I tried it, this was able
to reproduce the invalid transformation.

It worked for aarch64 and x86_64, not sure if it will work for
i686-pc-linux-gnu too...


Bernd.

Reply via email to