constraints.md (wH constraint): Add new constraints for allowing 32-bit integers (and eventually 8/16-bit... [gcc] 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> * config/rs6000/constraints.md (wH constraint): Add new constraints for allowing 32-bit integers (and eventually 8/16-bit integers) into the vector registers. (wI constraint): Likewise. (wJ constraint): Likewise. (wK constraint): Likewise. * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add -mvsx-small-integer as a default option for ISA 2.07 (i.e. power8). (POWERPC_MASKS): Likewise. * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug switch to turn off small integer support in vector registers. * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate test for -mupper-regs-di, since it is already done with the reg_add[mode].scalar_in_vsx_p. Add support for the switch -mvsx-small-integer. (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK constraints. (rs6000_setup_reg_addr_masks): Likewise. (rs6000_init_hard_regno_mode_ok): Likewise. (rs6000_option_override_internal): Add consistency checks for -mvsx-small-integer. (rs6000_secondary_reload_simple_move): SImode is a simple move if -mvsx-small-integer. (rs6000_secondary_reload): Use std::swap. (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over VSX_REGS for small integers in vector registers, since there is no D-FORM address mode for such types. (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32. (rs6000_opt_masks): Add -mvsx-small-integer. * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer support. (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode extracts can be done on ISA 2.07. (vsx_extract_<mode>): Add support for small integers in vsx registers. (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no longer support V4SImode in this pattern. (vsx_extract_si): New insn to support extraction of SImode in ISA 2.07 using either xxextractuw or vspltw. (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no longer support V4SImode in this pattern. * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI, wJ, and wK constraints. * config/rs6000/rs6000.md (f32_sv): Use correct instruction for storing SDmode with VSX instructions. (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the GPR load and before the FPR and VSX loads. Remove ??, ! from the constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support small integers in vector registers. (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR load and before the FPR and VSX loads. Remove ??, ! from the constraints. Add VEXTSW2D support for small integers in vector registers. (lfiwax): Remove ! constraint. Add VEXTSW2D support for small integers in vector registers. (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal move instead of using an UNSPEC. (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small integers in vector registers. (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal move instead of using an UNSPEC. (movsi_internal1): Add support for -mvsx-small-integer. Align columns so that it is more readable. (SImode splitter for ISA 3.0 constants): Add splitter for -128..127 constants that can easily be constructed on ISA 3.0. * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK constraints. [gcc/testsuite] 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> * gcc.target/powerpc/vsx-simode.c: New test. * gcc.target/powerpc/vsx-simode2.c: Likewise. * gcc.target/powerpc/vsx-simode3.c: Likewise. From-SVN: r241631
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| 40x.md | Loading commit data... | |
| 440.md | Loading commit data... | |
| 476.h | Loading commit data... | |
| 476.md | Loading commit data... | |
| 476.opt | Loading commit data... | |
| 601.md | Loading commit data... | |
| 603.md | Loading commit data... | |
| 6xx.md | Loading commit data... | |
| 7450.md | Loading commit data... | |
| 750cl.h | Loading commit data... | |
| 7xx.md | Loading commit data... | |
| 8540.md | Loading commit data... | |
| a2.md | Loading commit data... | |
| aix-stdint.h | Loading commit data... | |
| aix.h | Loading commit data... | |
| aix43.h | Loading commit data... | |
| aix51.h | Loading commit data... | |
| aix52.h | Loading commit data... | |
| aix53.h | Loading commit data... | |
| aix61.h | Loading commit data... | |
| aix64.opt | Loading commit data... | |
| aix71.h | Loading commit data... | |
| altivec.h | Loading commit data... | |
| altivec.md | Loading commit data... | |
| biarch64.h | Loading commit data... | |
| cell.md | Loading commit data... | |
| constraints.md | Loading commit data... | |
| crypto.md | Loading commit data... | |
| darwin.h | Loading commit data... | |
| darwin.md | Loading commit data... | |
| darwin.opt | Loading commit data... | |
| darwin64.h | Loading commit data... | |
| darwin7.h | Loading commit data... | |
| darwin8.h | Loading commit data... | |
| default64.h | Loading commit data... | |
| dfp.md | Loading commit data... | |
| driver-rs6000.c | Loading commit data... | |
| e300c2c3.md | Loading commit data... | |
| e500.h | Loading commit data... | |
| e500mc.md | Loading commit data... | |
| e500mc64.md | Loading commit data... | |
| e5500.md | Loading commit data... | |
| e6500.md | Loading commit data... | |
| eabi.h | Loading commit data... | |
| eabialtivec.h | Loading commit data... | |
| eabisim.h | Loading commit data... | |
| eabispe.h | Loading commit data... | |
| freebsd.h | Loading commit data... | |
| freebsd64.h | Loading commit data... | |
| genopt.sh | Loading commit data... | |
| host-darwin.c | Loading commit data... | |
| host-ppc64-darwin.c | Loading commit data... | |
| htm.md | Loading commit data... | |
| htmintrin.h | Loading commit data... | |
| htmxlintrin.h | Loading commit data... | |
| linux.h | Loading commit data... | |
| linux64.h | Loading commit data... | |
| linux64.opt | Loading commit data... | |
| linuxaltivec.h | Loading commit data... | |
| linuxspe.h | Loading commit data... | |
| lynx.h | Loading commit data... | |
| milli.exp | Loading commit data... | |
| mpc.md | Loading commit data... | |
| netbsd.h | Loading commit data... | |
| option-defaults.h | Loading commit data... | |
| paired.h | Loading commit data... | |
| paired.md | Loading commit data... | |
| power4.md | Loading commit data... | |
| power5.md | Loading commit data... | |
| power6.md | Loading commit data... | |
| power7.md | Loading commit data... | |
| power8.md | Loading commit data... | |
| power9.md | Loading commit data... | |
| ppc-asm.h | Loading commit data... | |
| ppc-auxv.h | Loading commit data... | |
| ppu_intrinsics.h | Loading commit data... | |
| predicates.md | Loading commit data... | |
| rs6000-builtin.def | Loading commit data... | |
| rs6000-c.c | Loading commit data... | |
| rs6000-cpus.def | Loading commit data... | |
| rs6000-linux.c | Loading commit data... | |
| rs6000-modes.def | Loading commit data... | |
| rs6000-opts.h | Loading commit data... | |
| rs6000-protos.h | Loading commit data... | |
| rs6000-tables.opt | Loading commit data... | |
| rs6000.c | Loading commit data... | |
| rs6000.h | Loading commit data... | |
| rs6000.md | Loading commit data... | |
| rs6000.opt | Loading commit data... | |
| rs64.md | Loading commit data... | |
| rtems.h | Loading commit data... | |
| secureplt.h | Loading commit data... | |
| si2vmx.h | Loading commit data... | |
| singlefp.h | Loading commit data... | |
| spe.h | Loading commit data... | |
| spe.md | Loading commit data... | |
| spu2vmx.h | Loading commit data... | |
| sync.md | Loading commit data... | |
| sysv4.h | Loading commit data... | |
| sysv4.opt | Loading commit data... | |
| sysv4le.h | Loading commit data... | |
| t-aix43 | Loading commit data... | |
| t-aix52 | Loading commit data... | |
| t-darwin64 | Loading commit data... | |
| t-darwin8 | Loading commit data... | |
| t-fprules | Loading commit data... | |
| t-freebsd64 | Loading commit data... | |
| t-linux | Loading commit data... | |
| t-linux64 | Loading commit data... | |
| t-linux64bele | Loading commit data... | |
| t-linux64le | Loading commit data... | |
| t-linux64lebe | Loading commit data... | |
| t-lynx | Loading commit data... | |
| t-netbsd | Loading commit data... | |
| t-ppccomm | Loading commit data... | |
| t-ppcendian | Loading commit data... | |
| t-ppcgas | Loading commit data... | |
| t-ppcos | Loading commit data... | |
| t-rs6000 | Loading commit data... | |
| t-rtems | Loading commit data... | |
| t-spe | Loading commit data... | |
| t-vxworks | Loading commit data... | |
| t-vxworksae | Loading commit data... | |
| t-vxworksmils | Loading commit data... | |
| t-xilinx | Loading commit data... | |
| titan.md | Loading commit data... | |
| vec_types.h | Loading commit data... | |
| vector.md | Loading commit data... | |
| vsx.md | Loading commit data... | |
| vxworks.h | Loading commit data... | |
| vxworksae.h | Loading commit data... | |
| vxworksmils.h | Loading commit data... | |
| x-aix | Loading commit data... | |
| x-darwin | Loading commit data... | |
| x-darwin64 | Loading commit data... | |
| x-linux-relax | Loading commit data... | |
| x-rs6000 | Loading commit data... | |
| xcoff.h | Loading commit data... | |
| xfpu.h | Loading commit data... | |
| xfpu.md | Loading commit data... | |
| xilinx.h | Loading commit data... | |
| xilinx.opt | Loading commit data... |