* config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
(rs6000_legitimate_offset_address_p): Return false for anything in
V2SImode or V2SFmode.
From-SVN: r249163
+2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
+ (rs6000_legitimate_offset_address_p): Return false for anything in
+ V2SImode or V2SFmode.
+
2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
&& small_data_operand (x, mode));
}
-/* SPE offset addressing is limited to 5-bits worth of double words. */
-#define SPE_CONST_OFFSET_OK(x) (((x) & ~0xf8) == 0)
-
bool
rs6000_legitimate_offset_address_p (machine_mode mode, rtx x,
bool strict, bool worst_case)
{
case V2SImode:
case V2SFmode:
- /* SPE vector modes. */
- return SPE_CONST_OFFSET_OK (offset);
+ /* Paired single modes: offset addressing isn't valid. */
+ return false;
case DFmode:
case DDmode: