tree-optimization/113670 - gather/scatter to/from hard registers
commit924137b9012cee5603482242de08fbf0b2030f6a
authorRichard Biener <rguenther@suse.de>
Wed, 31 Jan 2024 08:09:50 +0000 (31 09:09 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 31 Jan 2024 09:07:53 +0000 (31 10:07 +0100)
tree5068cb9de13cd00f22b3590a246bf8b652486bb2
parente7964bf623c6df3cb415eeafd458b0b8394e6ea4
tree-optimization/113670 - gather/scatter to/from hard registers

The following makes sure we're not taking the address of hard
registers when vectorizing appearant gathers or scatters to/from
them.

PR tree-optimization/113670
* tree-vect-data-refs.cc (vect_check_gather_scatter):
Make sure we can take the address of the reference base.

* gcc.target/i386/pr113670.c: New testcase.
gcc/testsuite/gcc.target/i386/pr113670.c [new file with mode: 0644]
gcc/tree-vect-data-refs.cc