]> gcc.gnu.org Git - gcc.git/commit
Fold vsx_extract from memory with constant element to floating point.
authorMichael Meissner <meissner@linux.ibm.com>
Mon, 24 Apr 2023 19:16:44 +0000 (15:16 -0400)
committerMichael Meissner <meissner@linux.ibm.com>
Mon, 24 Apr 2023 19:16:44 +0000 (15:16 -0400)
commitd6b9208d66fd2c1ae26394e6f918c19d83651491
tree3120363d7ff572342a3fde33259ab4cddb259aa5
parentb964a3b6c113e35418f0e91c8408ea8f23b8c31a
Fold vsx_extract from memory with constant element to floating point.

This patch folds V4SI/V8HI/V16QI vsx_extract from memory where the element
number is constant and it is converted to floating point (both signed and
unsigned floating point conversion).

2023-04-21   Michael Meissner  <meissner@linux.ibm.com>

gcc/

* config/rs6000/vsx.md (FL_CONV_REG): New mode attribute.
(vsx_extract_<VSX_EXTRACT_I:mode>_load_to_u<FL_CONV:mode>): New insn.
(vsx_extract_v4si_load_to_s<mode>): New insn.
(vsx_extract_v8hi_load_to_s<mode>): New insn.
gcc/config/rs6000/vsx.md
This page took 0.063126 seconds and 6 git commands to generate.