1 /* { dg-do assemble } */
2 /* { dg-require-effective-target arm_arm_ok } */
3 /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } {"-mfloat-abi=soft" } } */
4 /* { dg-options "-O2 -marm -mfloat-abi=soft" } */
5
6 /* Check that we don't try to emit STRD in ARM state with
7 odd starting register. */
8
9 struct S {
10 double M0;
11 } __attribute((aligned)) __attribute((packed));
12
13 void bar(void *);
14
foo(int x,struct S y)15 void foo(int x, struct S y) {
16 asm("" : : : "r1", "r8", "r7", "r4");
17 y.M0 ?: bar(0);
18 bar(__builtin_alloca(8));
19 }
20