Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-3.c
blob3b7a547a6e739de35dda565b951ce5dca22524bd
1 /* This test requires:
3 TRULY_NOOP_TRUNCATION (sizeof (int) * CHAR_BIT,
4 sizeof (long long) * CHAR_BIT)
6 When the condition is true, we distribute "(int) (a + b)" as
7 "(int) a + (int) b", otherwise we keep the original. */
8 /* { dg-do compile { target { ! mips64 } } } */
9 /* { dg-options "-O -fwrapv -fdump-tree-fre-details" } */
11 /* From PR14844. */
13 int
14 foo (int a, int b)
16 long long aa = a;
17 long long bb = b;
18 return aa + bb;
21 /* { dg-final { scan-tree-dump "Replaced \\\(int\\\) aa_.*with a_" "fre" } } */
22 /* { dg-final { cleanup-tree-dump "fre" } } */