From 2166d2a1a010c5172a14e30bb17c3bd4ca9a9ff3 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Fri, 27 Mar 2015 13:02:39 +0000 Subject: [PATCH] Allow misaligned volatile stores in C6X. * config/c6x/c6x.md (movmisalign): Use MEM_P, not memory_operand. From-SVN: r221732 --- gcc/ChangeLog | 3 +++ gcc/config/c6x/c6x.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e4b6c18055..d5535f9df08 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2015-03-27 Bernd Schmidt + * config/c6x/c6x.md (movmisalign): 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 fafefa6eca2..e957eca6e38 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)) + if (MEM_P (operands[0])) { emit_insn (gen_movmisalign_store (operands[0], operands[1])); DONE; -- 2.30.2