diff options
author | Richard Henderson <rth@redhat.com> | 2012-03-05 10:37:19 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2012-03-05 10:37:19 -0800 |
commit | b7313c309dafbb714591e9a91c2e409f9bc4e77c (patch) | |
tree | afdb118541a92c170df4f7a0558627858e5258f9 /gcc | |
parent | ab6497549a266eb0a7cf74f4579e939b6a1e16b7 (diff) | |
download | gcc-b7313c309dafbb714591e9a91c2e409f9bc4e77c.zip gcc-b7313c309dafbb714591e9a91c2e409f9bc4e77c.tar.gz gcc-b7313c309dafbb714591e9a91c2e409f9bc4e77c.tar.bz2 |
re PR target/52481 (m68k-*: internal compiler error: in extract_insn, at recog.c:2123)
PR target/52481
* config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
instead of calling negqi2 directly.
From-SVN: r184948
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/m68k/sync.md | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f101f7c..911737a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-03-05 Richard Henderson <rth@redhat.com> + + PR target/52481 + * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop + instead of calling negqi2 directly. + 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org> * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook. diff --git a/gcc/config/m68k/sync.md b/gcc/config/m68k/sync.md index 5d5002a..6c840f5 100644 --- a/gcc/config/m68k/sync.md +++ b/gcc/config/m68k/sync.md @@ -62,8 +62,11 @@ (match_operand:SI 2 "const_int_operand" "")] ;; model "" { - emit_insn (gen_atomic_test_and_set_1 (operands[0], operands[1])); - emit_insn (gen_negqi2 (operands[0], operands[0])); + rtx t = gen_reg_rtx (QImode); + emit_insn (gen_atomic_test_and_set_1 (t, operands[1])); + t = expand_simple_unop (QImode, NEG, t, operands[0], 0); + if (t != operands[0]) + emit_move_insn (operands[0], t); DONE; }) |