diff options
author | Oleg Endo <olegendo@gcc.gnu.org> | 2012-03-02 21:04:51 +0000 |
---|---|---|
committer | Oleg Endo <olegendo@gcc.gnu.org> | 2012-03-02 21:04:51 +0000 |
commit | 349e6f0526060faefb2e242f157dfe5e2c504121 (patch) | |
tree | 9f341c1f7cea1eabce29163be44334d667935d55 /gcc | |
parent | b6a0df6c472b04fffa3a458be71ab518caa5dade (diff) | |
download | gcc-349e6f0526060faefb2e242f157dfe5e2c504121.zip gcc-349e6f0526060faefb2e242f157dfe5e2c504121.tar.gz gcc-349e6f0526060faefb2e242f157dfe5e2c504121.tar.bz2 |
sync.md: Update copyright notice dates.
* config/sh/sync.md: Update copyright notice dates.
(atomic_compare_and_swap<mode>): Use SImode for return value instead
of QImode.
(atomic_compare_and_swap<mode>_soft): Likewise.
From-SVN: r184826
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/sh/sync.md | 10 |
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94e66c0..009097e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,11 @@ -2012-01-02 Oleg Endo <olegendo@gcc.gnu.org> +2012-03-02 Oleg Endo <olegendo@gcc.gnu.org> + + * config/sh/sync.md: Update copyright notice dates. + (atomic_compare_and_swap<mode>): Use SImode for return value instead + of QImode. + (atomic_compare_and_swap<mode>_soft): Likewise. + +2012-03-02 Oleg Endo <olegendo@gcc.gnu.org> PR target/31640 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align. diff --git a/gcc/config/sh/sync.md b/gcc/config/sh/sync.md index 6b397e2..88e0ce2 100644 --- a/gcc/config/sh/sync.md +++ b/gcc/config/sh/sync.md @@ -1,5 +1,5 @@ ;; GCC machine description for SH synchronization instructions. -;; Copyright (C) 2011 +;; Copyright (C) 2011, 2012 ;; Free Software Foundation, Inc. ;; ;; This file is part of GCC. @@ -109,7 +109,7 @@ [(plus "add") (minus "sub") (ior "or") (xor "xor") (and "and")]) (define_expand "atomic_compare_and_swap<mode>" - [(match_operand:QI 0 "register_operand" "") ;; bool success output + [(match_operand:SI 0 "register_operand" "") ;; bool success output (match_operand:I124 1 "register_operand" "") ;; oldval output (match_operand:I124 2 "memory_operand" "") ;; memory (match_operand:I124 3 "register_operand" "") ;; expected input @@ -131,7 +131,7 @@ else if (<MODE>mode == HImode) emit_insn (gen_zero_extendhisi2 (gen_lowpart (SImode, operands[1]), operands[1])); - emit_insn (gen_movqi (operands[0], gen_rtx_REG (QImode, T_REG))); + emit_insn (gen_movsi (operands[0], gen_rtx_REG (SImode, T_REG))); DONE; }) @@ -144,8 +144,8 @@ UNSPECV_CMPXCHG_1)) (set (mem:I124 (match_dup 1)) (unspec_volatile:I124 [(const_int 0)] UNSPECV_CMPXCHG_2)) - (set (reg:QI T_REG) - (unspec_volatile:QI [(const_int 0)] UNSPECV_CMPXCHG_3)) + (set (reg:SI T_REG) + (unspec_volatile:SI [(const_int 0)] UNSPECV_CMPXCHG_3)) (clobber (match_scratch:SI 4 "=&u")) (clobber (reg:SI R0_REG)) (clobber (reg:SI R1_REG))] |