[AArch64] Improve SIMD store of zero.
This patch changes patterns in aarch64-simd.md to replace movi v0.4s, 0 str q0, [x0, 16] With: stp xzr, xzr, [x0, 16] When we are storing zeros to vectors like this: void f(uint32x4_t *p) { uint32x4_t x = { 0, 0, 0, 0}; p[1] = x; } gcc/ 2017-08-17 Jackson Woodruff <jackson.woodruff@arm.com> * aarch64-simd.md (mov<mode>): No longer force zero immediate into register. (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate. gcc/testsuite/ 2017-08-17 Jackson Woodruff <jackson.woodruff@arm.com> * gcc.target/aarch64/simd/vect_str_zero.c: New testcase. From-SVN: r251149
Showing
Please
register
or
sign in
to comment