aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2015-03-27 13:02:39 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2015-03-27 13:02:39 +0000
commit2166d2a1a010c5172a14e30bb17c3bd4ca9a9ff3 (patch)
treeb971a7518e94f485f2a0525d361327b53582c6af
parentf50e5fcc32825c186ed32dbdf35dbf03c0fd0bcf (diff)
downloadgcc-2166d2a1a010c5172a14e30bb17c3bd4ca9a9ff3.zip
gcc-2166d2a1a010c5172a14e30bb17c3bd4ca9a9ff3.tar.gz
gcc-2166d2a1a010c5172a14e30bb17c3bd4ca9a9ff3.tar.bz2
Allow misaligned volatile stores in C6X.
* config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not memory_operand. From-SVN: r221732
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/c6x/c6x.md2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8e4b6c1..d5535f9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
+ * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
+ memory_operand.
+
PR target/65052
* config/c6x/constraints.md (S3): New constraint.
* config/c6x/c6x.md (real_jump): Use it.
diff --git a/gcc/config/c6x/c6x.md b/gcc/config/c6x/c6x.md
index fafefa6..e957eca 100644
--- a/gcc/config/c6x/c6x.md
+++ b/gcc/config/c6x/c6x.md
@@ -775,7 +775,7 @@
UNSPEC_MISALIGNED_ACCESS))]
"TARGET_INSNS_64"
{
- if (memory_operand (operands[0], <MODE>mode))
+ if (MEM_P (operands[0]))
{
emit_insn (gen_movmisalign<mode>_store (operands[0], operands[1]));
DONE;