diff options
author | Anton Blanchard <anton@samba.org> | 2008-10-04 16:22:06 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2008-10-04 12:22:06 -0400 |
commit | a3cb4b82a7bdde0ddc04d493c40cfddcfb6d8452 (patch) | |
tree | 9079f0d428cceed2c40d0d5f42dc58808dc061f6 /gcc/config | |
parent | 63a14fa3cd8ff97801699bb6e07fcbe876aba5fe (diff) | |
download | gcc-a3cb4b82a7bdde0ddc04d493c40cfddcfb6d8452.zip gcc-a3cb4b82a7bdde0ddc04d493c40cfddcfb6d8452.tar.gz gcc-a3cb4b82a7bdde0ddc04d493c40cfddcfb6d8452.tar.bz2 |
rs6000.c (rs6000_emit_sync): Use gen_lwsync().
2008-10-04 Anton Blanchard <anton@samba.org>
* config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
(rs6000_split_atomic_op): Same.
(rs6000_split_compare_and_swap): Same.
(rs6000_split_compare_and_swapqhi): Same.
From-SVN: r140869
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index e1e0d1c..d230dfd 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -13792,7 +13792,7 @@ rs6000_emit_sync (enum rtx_code code, enum machine_mode mode, rtx shift = NULL_RTX; if (sync_p) - emit_insn (gen_memory_barrier ()); + emit_insn (gen_lwsync ()); if (GET_CODE (m) == NOT) used_m = XEXP (m, 0); @@ -14032,7 +14032,7 @@ rs6000_split_atomic_op (enum rtx_code code, rtx mem, rtx val, enum machine_mode mode = GET_MODE (mem); rtx label, x, cond = gen_rtx_REG (CCmode, CR0_REGNO); - emit_insn (gen_memory_barrier ()); + emit_insn (gen_lwsync ()); label = gen_label_rtx (); emit_label (label); @@ -14072,7 +14072,7 @@ rs6000_split_compare_and_swap (rtx retval, rtx mem, rtx oldval, rtx newval, enum machine_mode mode = GET_MODE (mem); rtx label1, label2, x, cond = gen_rtx_REG (CCmode, CR0_REGNO); - emit_insn (gen_memory_barrier ()); + emit_insn (gen_lwsync ()); label1 = gen_rtx_LABEL_REF (VOIDmode, gen_label_rtx ()); label2 = gen_rtx_LABEL_REF (VOIDmode, gen_label_rtx ()); @@ -14177,7 +14177,7 @@ rs6000_split_compare_and_swapqhi (rtx dest, rtx mask, { rtx label1, label2, x, cond = gen_rtx_REG (CCmode, CR0_REGNO); - emit_insn (gen_memory_barrier ()); + emit_insn (gen_lwsync ()); label1 = gen_rtx_LABEL_REF (VOIDmode, gen_label_rtx ()); label2 = gen_rtx_LABEL_REF (VOIDmode, gen_label_rtx ()); emit_label (XEXP (label1, 0)); |