Skip to content
Snippets Groups Projects
Commit 035c196c authored by Richard Sandiford's avatar Richard Sandiford
Browse files

aarch64: Add a test for zeroing <64bits>x2_t structures

g:8d6c6fbc improved the code
generated for functions like:

  void test_s8 (int8x8x2_t *ptr) { *ptr = (int8x8x2_t) {}; }

Previously we would load zero from the constant pool, whereas
now we just use "stp xzr, xzr".  This patch adds a test for
this improvement.

gcc/testsuite/
	* gcc.target/aarch64/struct_zero.c: New test.
parent 3c9338b5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment