| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 --param max-rtl-if-conversion-insns=1" } */ |
| 3 |
/* { dg-final { scan-assembler-not "maskeqz" } } */ |
| 4 |
/* { dg-final { scan-assembler-not "masknez" } } */ |
| 5 |
|
| 6 |
/* The relevant optimization is currently only based on noce_try_cmove_arith, |
| 7 |
so it bypasses noce_convert_multiple_sets by |
| 8 |
--param max-rtl-if-conversion-insns=1 to execute noce_try_cmove_arith. */ |
| 9 |
|
| 10 |
extern long lm, ln, lr; |
| 11 |
|
| 12 |
void |
| 13 |
test_ge () |
| 14 |
{ |
| 15 |
if (lm >= ln) |
| 16 |
lr += ((long)1 << 32); |
| 17 |
lr += lm; |
| 18 |
} |
| 19 |
|
| 20 |
void |
| 21 |
test_ltz () |
| 22 |
{ |
| 23 |
if (lm < 0) |
| 24 |
lr |= (1 << 16); |
| 25 |
lr += lm; |
| 26 |
} |
| 27 |
|
| 28 |
void |
| 29 |
test_lez () |
| 30 |
{ |
| 31 |
if (lm <= 0) |
| 32 |
lr |= (1 << 16); |
| 33 |
lr += lm; |
| 34 |
} |
| 35 |
|
| 36 |
void |
| 37 |
test_gez () |
| 38 |
{ |
| 39 |
if (lm >= 0) |
| 40 |
lr ^= (1 << 16); |
| 41 |
lr += lm; |
| 42 |
} |