aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.cc
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2024-06-26 11:17:46 +0800
committerliuhongt <hongtao.liu@intel.com>2024-07-01 09:09:59 +0800
commit5e1a9f4ccff390ae79a9b9d0d39b325f2b4ea925 (patch)
treeb238794846c4e738ce54ecc67f837c1d83c6c37c /gcc/tree-vect-loop.cc
parent76075bf06ef958e133e3bed4967cf33fa402c54e (diff)
downloadgcc-5e1a9f4ccff390ae79a9b9d0d39b325f2b4ea925.zip
gcc-5e1a9f4ccff390ae79a9b9d0d39b325f2b4ea925.tar.gz
gcc-5e1a9f4ccff390ae79a9b9d0d39b325f2b4ea925.tar.bz2
Define mask as extern instead of uninitialized local variables.
The testcases are supposed to scan for vpopcnt{b,w,d,q} operations with k mask, but mask is defined as uninitialized local variable which will be set as 0 at rtl expand phase. And it's further simplified off by late_combine which caused scan assembly failure. Move the definition of mask outside to make the testcases more stable. gcc/testsuite/ChangeLog: PR target/115610 * gcc.target/i386/avx512bitalg-vpopcntb.c: Define mask as extern instead of uninitialized local variables. * gcc.target/i386/avx512bitalg-vpopcntbvl.c: Ditto. * gcc.target/i386/avx512bitalg-vpopcntw.c: Ditto. * gcc.target/i386/avx512bitalg-vpopcntwvl.c: Ditto. * gcc.target/i386/avx512vpopcntdq-vpopcntd.c: Ditto. * gcc.target/i386/avx512vpopcntdq-vpopcntq.c: Ditto.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions