]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Teach legitimate_address_p about LEN_{LOAD,STORE} [PR110248]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 9 Aug 2023 06:15:46 +0000 (01:15 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 9 Aug 2023 06:16:05 +0000 (01:16 -0500)
commit0412f0e374de1f66e20c407e0b519324af3fd5b6
tree85273baac0d510da6953ffa24b148f56309bc762
parent4a8e6fa8016f8daf184dec49f371ca71b1cb0f01
rs6000: Teach legitimate_address_p about LEN_{LOAD,STORE} [PR110248]

This patch is to teach rs6000_legitimate_address_p to
handle the queried rtx constructed for LEN_{LOAD,STORE},
since lxvl and stxvl doesn't support x-form or ds-form,
so consider it as not legitimate when outer code is PLUS.

PR tree-optimization/110248

gcc/ChangeLog:

* config/rs6000/rs6000.cc (rs6000_legitimate_address_p): Check if
the given code is for ifn LEN_{LOAD,STORE}, if yes then make it not
legitimate when outer code is PLUS.
gcc/config/rs6000/rs6000.cc