aboutsummaryrefslogtreecommitdiff
path: root/gcc/memory-block.h
diff options
context:
space:
mode:
authorDennis Zhang <dennis.zh@live.com>2020-10-06 16:53:46 +0100
committerDennis Zhang <dennis.zh@live.com>2020-10-06 16:53:46 +0100
commit29c650cd899496c4f9bc069d03d0d7ecfb632176 (patch)
tree05ed6f469f3ea1cc26084c4d25ee91c21e08452f /gcc/memory-block.h
parent3f2e15c2e66af9cca1dfe24ad7e9692f511ebd06 (diff)
downloadgcc-29c650cd899496c4f9bc069d03d0d7ecfb632176.zip
gcc-29c650cd899496c4f9bc069d03d0d7ecfb632176.tar.gz
gcc-29c650cd899496c4f9bc069d03d0d7ecfb632176.tar.bz2
arm: Enable MVE SIMD modes for vectorization
This patch enables SIMD modes for MVE auto-vectorization. In this patch, the integer and float MVE SIMD modes are returned by arm_preferred_simd_mode (TARGET_VECTORIZE_PREFERRED_SIMD_MODE hook) when MVE or MVE_FLOAT is enabled. Then the expanders for auto-vectorization can be used for generating MVE SIMD code. This patch also fixes bugs in MVE vreiterpretq_*.c tests which are revealed by the enabled MVE SIMD modes. The tests are for checking the MVE reinterpret intrinsics. There are two functions in each of the tests. The two functions contain the pattern of identical code so that they are folded in icf pass. Because of icf, the instruction count only checks one function which is 8. However when the SIMD modes are enabled, the estimation of the code size becomes smaller so that inlining is applied after icf, then the instruction count becomes 16 which causes failure of the tests. Because the icf is not the expected pattern to be tested but causes above issues, -fno-ipa-icf is applied to the tests to avoid unstable instruction count. gcc/ChangeLog: 2020-10-05 Dennis Zhang <dennis.zhang@arm.com> * config/arm/arm.c (arm_preferred_simd_mode): Enable MVE SIMD modes. gcc/testsuite/ChangeLog: 2020-10-05 Dennis Zhang <dennis.zhang@arm.com> * gcc.target/arm/mve/intrinsics/vreinterpretq_f16.c: Use additional option -fno-ipa-icf and change the instruction count from 8 to 16. * gcc.target/arm/mve/intrinsics/vreinterpretq_f32.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_s16.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_s32.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_s64.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_s8.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_u16.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_u32.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_u64.c: Likewise. * gcc.target/arm/mve/intrinsics/vreinterpretq_u8.c: Likewise.
Diffstat (limited to 'gcc/memory-block.h')
0 files changed, 0 insertions, 0 deletions