]> git.ipfire.org Git - thirdparty/gcc.git/commit
[ARC] [LRA] Avoid emitting COND_EXEC during expand.
authorclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2017 12:59:45 +0000 (12:59 +0000)
committerclaziss <claziss@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2017 12:59:45 +0000 (12:59 +0000)
commitf969d0c174f9d21e3ff62d1d52773394111a832a
treefd0255d31b78cecb7586825651c6fa5a9b34a79e
parent256e76369f2866f0b6b835f8e8d2b3145fb05f9e
[ARC] [LRA] Avoid emitting COND_EXEC during expand.

Emmitting COND_EXEC rtxes during expand does introduces errors due to LRA handling of them. Issue discovered while running dejagnu test suit with mlra option on.

gcc/
2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
that also clobbers the CC register. The old expand code is moved
to ...
(*arc_clzsi2): ... here.
(ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
the CC register. The old expand code is moved to ...
(arc_ctzsi2): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250275 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/arc/arc.md