aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 402e85e..56117f9 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -6264,7 +6264,8 @@ compute_ld_motion_mems ()
{
ptr = ldst_entry (dest);
- if (GET_CODE (src) != MEM)
+ if (GET_CODE (src) != MEM
+ && GET_CODE (src) != ASM_OPERANDS)
ptr->stores = alloc_INSN_LIST (insn, ptr->stores);
else
ptr->invalid = 1;
@@ -6521,7 +6522,8 @@ find_moveable_store (insn)
struct ls_expr * ptr;
rtx dest = PATTERN (insn);
- if (GET_CODE (dest) != SET)
+ if (GET_CODE (dest) != SET
+ || GET_CODE (SET_SRC (dest)) == ASM_OPERANDS)
return;
dest = SET_DEST (dest);