1 /* Test whether using target specific options, we can generate SSE2 code on
2 32-bit, which does not generate SSE2 by default, but still generate 387 code
3 for a function that doesn't use attribute((option)). */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target ilp32 } */
6 /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
7 /* { dg-options "-O3 -ftree-vectorize -march=i386" } */
8 /* { dg-final { scan-assembler "addps\[ \t\]" } } */
9 /* { dg-final { scan-assembler "fsubs\[ \t\]" } } */
15 float a
[SIZE
] __attribute__((__aligned__(16)));
16 float b
[SIZE
] __attribute__((__aligned__(16)));
17 float c
[SIZE
] __attribute__((__aligned__(16)));
19 void sse_addnums (void) __attribute__ ((__target__ ("sse2")));