aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/930529-1.x
blob: 25225f4f4d691bc7f69019a8692aac0fde4a37f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# The problem on Alpha at -O3 is that when dd is inlined, we have
# division by a constant, which gets converted to multiplication
# by a large constant, which gets turned into an induction variable.
# The problem is that the multiplication was unsigned SImode, and the
# induction variable is DImode, and we lose the truncation that
# should have happened.
#
# On tree-ssa branch, the loop problem is still extant, but the
# gimple-level optimization makes it easy for the tree-rtl expanders
# to see that the comparisons are always true, and so the loop code
# is never exercized.

# set torture_eval_before_execute {
# 
#     set compiler_conditional_xfail_data {
#         "division by a constant conflicts with strength reduction" \
#         "alpha*-*-*" \
#         { "-O3" } \
#         { "" }
#     }
# }

set additional_flags "-fwrapv"
return 0