diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr14981-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr14981-1.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr14981-1.c b/gcc/testsuite/gcc.dg/pr14981-1.c new file mode 100644 index 00000000000..7d5bde9e566 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr14981-1.c @@ -0,0 +1,12 @@ +/* PR target/14981 */ +/* PR target/20051 */ +/* Test case reduced by Ferdinand <commie1@gmx.net> */ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O2 -msse" } */ +typedef float v4sf __attribute__ ((vector_size (16))); + +void foo(float* y) +{ + v4sf x = __builtin_ia32_xorps (x,x); + __builtin_ia32_storeaps (y, x); +} |