diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-11-23 18:02:15 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-11-23 18:02:15 +0100 |
commit | d4f3b8645c3c94cc376a8f35513bcb28da9b1722 (patch) | |
tree | 1d2f8cb4ca9477d52f13ebf9aea302206604782f /riscV/CSE2deps.v | |
parent | 36c82ee8b0ac340a663a3790d70fd200d3f35ef9 (diff) | |
download | compcert-kvx-d4f3b8645c3c94cc376a8f35513bcb28da9b1722.tar.gz compcert-kvx-d4f3b8645c3c94cc376a8f35513bcb28da9b1722.zip |
fix bug #223 on Risc-V
Diffstat (limited to 'riscV/CSE2deps.v')
-rw-r--r-- | riscV/CSE2deps.v | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/riscV/CSE2deps.v b/riscV/CSE2deps.v index b4b80e2f..c0deacf0 100644 --- a/riscV/CSE2deps.v +++ b/riscV/CSE2deps.v @@ -28,5 +28,8 @@ Definition may_overlap chunk addr args chunk' addr' args' := (base :: nil), (base' :: nil) => if peq base base' then negb (can_swap_accesses_ofs (Ptrofs.unsigned ofs') chunk' (Ptrofs.unsigned ofs) chunk) - else true | _, _, _, _ => true + else true + | (Ainstack ofs), (Ainstack ofs'), _, _ => + negb (can_swap_accesses_ofs (Ptrofs.unsigned ofs') chunk' (Ptrofs.unsigned ofs) chunk) + | _, _, _, _ => true end. |