]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/arc/arc.cc
arc: Fix cached to uncached moves.
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 29 Dec 2020 11:30:04 +0000 (13:30 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Tue, 29 Dec 2020 11:41:03 +0000 (13:41 +0200)
commite51727c6912c0b0190b3bd8f64e711e2eecbc045
tree766acd260ba477bf7a90f923e2af9a5c2c1097d9
parent052870c3d1c962a0875c4debc066ccc3d68e7029
arc: Fix cached to uncached moves.

We need an temporary register when moving data from a cached memory to
an uncached memory. Fix this issue and add a test for it.

gcc/
2020-12-29  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (prepare_move_operands): Use a temporary
registers when we have cached mem-to-uncached mem moves.

gcc/testsuite/
2020-12-29  Vladimir Isaev  <isaev@synopsys.com>

* gcc.target/arc/uncached-9.c: New test.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
gcc/config/arc/arc.c
gcc/testsuite/gcc.target/arc/uncached-9.c [new file with mode: 0644]