]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/113670 - gather/scatter to/from hard registers
authorRichard Biener <rguenther@suse.de>
Wed, 31 Jan 2024 08:09:50 +0000 (09:09 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 21 Mar 2024 12:59:28 +0000 (13:59 +0100)
commitac664905b837095b15099e44e83471672eee7aa9
treecea860d7e0ebdca03780f61f55f05bc9c50ebb87
parentd4c0800aab864bb95260e12342d18695c6ebbec8
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.

(cherry picked from commit 924137b9012cee5603482242de08fbf0b2030f6a)
gcc/testsuite/gcc.target/i386/pr113670.c [new file with mode: 0644]
gcc/tree-vect-data-refs.cc