1 /* { dg-do compile } */
2 /* { dg-require-effective-target nonpic } */
3 /* { dg-options "-O2 -msse2 -mno-avx -fipa-ra -fomit-frame-pointer" } */
5 typedef double v2df
__attribute__((vector_size (16)));
7 static v2df
__attribute__((noinline
))
10 return a
+ (v2df
){ 3.0, 3.0 };
13 v2df
__attribute__((noinline
))
19 /* Check presence of all insns on xmm registers. These checks are expected to
20 pass with both -fipa-ra and -fno-ipa-ra. */
21 /* { dg-final { scan-assembler-times "addpd\t\\.?LC0.*, %xmm0" 1 } } */
22 /* { dg-final { scan-assembler-times "addpd\t%xmm1, %xmm0" 1 } } */
23 /* { dg-final { scan-assembler-times "movapd\t%xmm0, %xmm1" 1 } } */
25 /* Check absence of save/restore of xmm1 register. */
26 /* { dg-final { scan-assembler-not "movaps\t%xmm1, \\(%\[re\]?sp\\)" } } */
27 /* { dg-final { scan-assembler-not "movapd\t\\(%\[re\]?sp\\), %xmm1" } } */