]> git.ipfire.org Git - thirdparty/gcc.git/commit
target/115254 - fix gcc.dg/vect/vect-gather-4.c dump scanning
authorRichard Biener <rguenther@suse.de>
Tue, 28 May 2024 13:55:59 +0000 (15:55 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 28 May 2024 13:59:06 +0000 (15:59 +0200)
commitd8d70b783765361a8acef70fc9b54db526cd6ff5
tree9062c289e8c7069ae7905d7556f678f55022f5b2
parentc08b0d3f7b3539b26031de31d88dea6b94474577
target/115254 - fix gcc.dg/vect/vect-gather-4.c dump scanning

The dump scanning is supposed to check that we do not merge two
sligtly different gathers into one SLP node but since we now
SLP the store scanning for "ectorizing stmts using SLP" is no
longer good.  Instead the following makes us look for
"stmt 1 .* = .MASK" which would be how the second lane of an SLP
node looks like.  We have to handle both .MASK_GATHER_LOAD (for
targets with ifun mask gathers) and .MASK_LOAD (for ones without).

Tested on x86_64-linux with and without native gather and on GCN
where this now avoids a FAIL.

PR target/115254
* gcc.dg/vect/vect-gather-4.c: Adjust dump scan.
gcc/testsuite/gcc.dg/vect/vect-gather-4.c