[AArch64] Merge stores of D-register values with different modes
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr55920.c
blob91387430b71c2cf2c911286769a9cfe55394a4e9
1 /* PR tree-optimization/55920 */
3 struct A { unsigned a; } __attribute__((packed));
4 struct B { int b; unsigned char c[16]; };
5 void bar (struct A);
7 void
8 foo (struct B *x)
10 struct A a;
11 if (x->b)
12 __builtin_memcpy (&a, x->c, sizeof a);
13 else
14 a.a = 0;
15 bar (a);