pr15784-4.c   [plain text]


/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int a (int x) {
	return ~x + 1; /* -x */
}

int b (int x) {
	return -x -1; /* ~x */
}

/* { dg-final { scan-tree-dump "~x;" "optimized" } } */
/* { dg-final { scan-tree-dump "-x;" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */