diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/pr50451.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr50451.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr50451.c b/gcc/testsuite/gcc.dg/vect/pr50451.c new file mode 100644 index 0000000..0733ea2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr50451.c @@ -0,0 +1,18 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target vect_int } */ + +int +foo (int integral, int decimal, int power_ten) +{ + while (power_ten > 0) + { + integral *= 10; + decimal *= 10; + power_ten--; + } + + return integral+decimal; +} + +/* { dg-final { cleanup-tree-dump "vect" } } */ + |