| 1 |
/* PR rtl-optimization/57559 */ |
| 2 |
|
| 3 |
/* { dg-do compile } */ |
| 4 |
/* { dg-options "-march=z10 -mzarch -O1" } */ |
| 5 |
|
| 6 |
typedef int int32_t; |
| 7 |
typedef unsigned char uint8_t; |
| 8 |
typedef unsigned int uint32_t; |
| 9 |
struct _IO_marker |
| 10 |
{ |
| 11 |
}; |
| 12 |
static const int32_t mfcone = 1; |
| 13 |
static const uint8_t *mfctop = (const uint8_t *) &mfcone; |
| 14 |
int32_t |
| 15 |
decContextTestEndian (uint8_t quiet) |
| 16 |
{ |
| 17 |
int32_t res = 0; |
| 18 |
uint32_t dle = (uint32_t) 0; |
| 19 |
if (*(int *) 10 != 0) |
| 20 |
{ |
| 21 |
res = (int32_t) * mfctop - dle; |
| 22 |
} |
| 23 |
return res; |
| 24 |
} |