diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr52210.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr52210.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr52210.c b/gcc/testsuite/gcc.dg/pr52210.c new file mode 100644 index 00000000000..c7ebeb60870 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr52210.c @@ -0,0 +1,12 @@ +/* PR tree-optimization/52210 */ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ + +void +foo (long *x, long y, long z) +{ + long a = x[0]; + long b = x[1]; + x[0] = a & ~y; + x[1] = b & ~z; +} |