| 1 |
// { dg-do compile } |
| 2 |
// { dg-options "-O2 -fcompare-debug" } |
| 3 |
// { dg-additional-options "-march=i586 -mtune=generic" { target ia32 } } |
| 4 |
// { dg-additional-options "-fPIC" { target { fpic } } } |
| 5 |
|
| 6 |
enum gimple_code { GIMPLE_ASSIGN, GIMPLE_RETURN }; |
| 7 |
bool is_gimple_call(); |
| 8 |
int m_sig, m_exp, sreal_new_exp; |
| 9 |
struct sreal { |
| 10 |
sreal(long long sig) { |
| 11 |
long long __trans_tmp_6 = sig >= 0 ? sig : -(unsigned long long)sig; |
| 12 |
sig = __trans_tmp_6 <<= sreal_new_exp -= m_exp = __trans_tmp_6; |
| 13 |
m_sig = sig; |
| 14 |
} |
| 15 |
void operator/(sreal); |
| 16 |
}; |
| 17 |
struct ipa_predicate { |
| 18 |
ipa_predicate(bool = true); |
| 19 |
void operator&=(ipa_predicate); |
| 20 |
void operator&(ipa_predicate); |
| 21 |
}; |
| 22 |
void add_condition(); |
| 23 |
gimple_code eliminated_by_inlining_prob_code; |
| 24 |
static int eliminated_by_inlining_prob() { |
| 25 |
switch (eliminated_by_inlining_prob_code) { |
| 26 |
case GIMPLE_RETURN: |
| 27 |
return 2; |
| 28 |
case GIMPLE_ASSIGN: |
| 29 |
return 1; |
| 30 |
} |
| 31 |
return 0; |
| 32 |
} |
| 33 |
void fp_expression_p() { |
| 34 |
ipa_predicate bb_predicate; |
| 35 |
for (;;) { |
| 36 |
int prob = eliminated_by_inlining_prob(); |
| 37 |
ipa_predicate sra_predicate; |
| 38 |
sra_predicate &= add_condition; |
| 39 |
if (is_gimple_call()) |
| 40 |
sreal(prob) / 2; |
| 41 |
if (prob != 2) |
| 42 |
bb_predicate & sra_predicate; |
| 43 |
} |
| 44 |
} |