diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/sparc/fexpand-2.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/sparc/fexpand-2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/sparc/fexpand-2.c b/gcc-4.9/gcc/testsuite/gcc.target/sparc/fexpand-2.c new file mode 100644 index 000000000..c37b806c9 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/sparc/fexpand-2.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O1 -mcpu=ultrasparc -mvis -fdump-tree-optimized" } */ +typedef short vec16 __attribute__((vector_size(8))); +typedef unsigned char vec8 __attribute__((vector_size(4))); + +vec16 foo () { + vec8 a = {(unsigned char)1,(unsigned char)2,(unsigned char)4,(unsigned char)8}; + return __builtin_vis_fexpand (a); +} + +/* { dg-final { scan-tree-dump "{ 16, 32, 64, 128 }" "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ |