OSDN Git Service

Backport from mainline:
[pf3gnuchains/gcc-fork.git] / gcc / config / tilegx / sync.md
index 8be762a..e4d1e07 100644 (file)
   emit_insn (gen_atomic_fetch_<fetchop_name>_bare<mode> (operands[0],
                                                          operands[1],
                                                          operands[2]));
-  tilegx_pre_atomic_barrier (model);
+  tilegx_post_atomic_barrier (model);
   DONE;
 })
 
   emit_insn (gen_atomic_fetch_add_bare<mode> (operands[0],
                                               operands[1],
                                               operands[2]));
-  tilegx_pre_atomic_barrier (model);
+  tilegx_post_atomic_barrier (model);
   DONE;
 })