annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-3.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* This test requires:
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 TRULY_NOOP_TRUNCATION (sizeof (int) * CHAR_BIT,
kono
parents:
diff changeset
4 sizeof (long long) * CHAR_BIT)
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 When the condition is true, we distribute "(int) (a + b)" as
kono
parents:
diff changeset
7 "(int) a + (int) b", otherwise we keep the original. */
kono
parents:
diff changeset
8 /* { dg-do compile { target { { ! mips64 } && { ! spu-*-* } } } } */
kono
parents:
diff changeset
9 /* { dg-options "-O -fno-tree-forwprop -fno-tree-ccp -fwrapv -fdump-tree-fre1-details" } */
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 /* From PR14844. */
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 int
kono
parents:
diff changeset
14 foo (int a, int b)
kono
parents:
diff changeset
15 {
kono
parents:
diff changeset
16 long long aa = a;
kono
parents:
diff changeset
17 long long bb = b;
kono
parents:
diff changeset
18 return aa + bb;
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* { dg-final { scan-tree-dump "Replaced \\\(int\\\) aa_.*with a_" "fre1" { xfail { riscv*-*-* && lp64 } } } } */