]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/rs6000/darwin.md
rs6000: Simplify "switch (which_alternative)" patterns
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 25 Sep 2018 23:31:22 +0000 (01:31 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 25 Sep 2018 23:31:22 +0000 (01:31 +0200)
commit07a38de7ceed3080f6f95912624d7e01ae352b6d
tree774a4e1523391a2a22a0699cb1bbd7f91da054ef
parentad117173a0d8a5412bc2b9fb99e2c9b1cb4036af
rs6000: Simplify "switch (which_alternative)" patterns

A few of the rs6000 patterns use C code as output control string, where
that code is just a "switch (which_alternative)" with all alternatives
returning a constant string or just the result of a function call as
template.
Write such cases as just a list of templates, with the few pieces that
are C code preceded by "*".

* config/rs6000/altivec.md (*altivec_mov<mode>): Write the output
control string as a list of templates instead of as C code.
(*altivec_movti): Ditto.
* config/rs6000/darwin.md (movdf_low_di): Ditto.

From-SVN: r264587
gcc/ChangeLog
gcc/config/rs6000/altivec.md
gcc/config/rs6000/darwin.md