aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/s390/pr57559.c
blob: 15c3878c4cfaa4154641f7d5ce612774db7238de (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
/* PR rtl-optimization/57559  */

/* { dg-do compile } */
/* { dg-options "-march=z10 -m64 -mzarch  -O1" } */

typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
struct _IO_marker
{
};
static const int32_t mfcone = 1;
static const uint8_t *mfctop = (const uint8_t *) &mfcone;
int32_t
decContextTestEndian (uint8_t quiet)
{
  int32_t res = 0;
  uint32_t dle = (uint32_t) 0;
  if (*(int *) 10 != 0)
    {
      res = (int32_t) * mfctop - dle;
    }
  return res;
}