From: Oleg Endo Date: Thu, 25 Sep 2014 16:00:58 +0000 (+0000) Subject: backport: re PR target/62218 (gcc produces invalid SH instruction (stc r2,sr) when... X-Git-Tag: releases/gcc-4.8.4~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b89bb25ea29f4d4aacc72381b9078a8c3e26e09;p=thirdparty%2Fgcc.git backport: re PR target/62218 (gcc produces invalid SH instruction (stc r2,sr) when building libgcc) gcc/ 2014-09-25 Oleg Endo Backport from mainline 2014-09-25 Nick Clifton 2014-09-25 Oleg Endo PR target/62218 * config/sh/sync.md (atomic_fetch_nand_soft_imask, atomic_test_and_set_soft_imask): Fix typo in instruction sequence. From-SVN: r215609 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2b552d86334..3e7516199e24 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2014-09-25 Oleg Endo + + Backport from mainline + 2014-09-25 Nick Clifton + 2014-09-25 Oleg Endo + + PR target/62218 + * config/sh/sync.md (atomic_fetch_nand_soft_imask, + atomic_test_and_set_soft_imask): Fix typo in instruction sequence. + 2014-09-25 Bill Schmidt Backport from mainline r215559 diff --git a/gcc/config/sh/sync.md b/gcc/config/sh/sync.md index cf135ac09fb6..a739fe9673f7 100644 --- a/gcc/config/sh/sync.md +++ b/gcc/config/sh/sync.md @@ -903,7 +903,7 @@ " and %0,%3" "\n" " not %3,%3" "\n" " mov. %3,@%1" "\n" - " stc %4,sr"; + " ldc %4,sr"; } [(set_attr "length" "20")]) @@ -1353,7 +1353,7 @@ " ldc r0,sr" "\n" " mov.b @%0,r0" "\n" " mov.b %1,@%0" "\n" - " stc %2,sr" "\n" + " ldc %2,sr" "\n" " tst r0,r0"; } [(set_attr "length" "16")])