libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / negneq-3.c
blob14546a606c324d712a57d48e07fc8bfbce4d5f3f
1 /* PR tree-optimization/110134 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fdump-tree-optimized" } */
5 int fu(unsigned a, unsigned b)
7 a = -a;
8 b = -b;
9 return a == b;
11 int fs(signed a, signed b)
13 a = -a;
14 b = -b;
15 return a == b;
18 /* We should have optimized out the a = -; statements. */
19 /* { dg-final { scan-tree-dump-not "= -a" "optimized" } } */
20 /* { dg-final { scan-tree-dump-not "= -b" "optimized" } } */