summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/pr57559.c
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@chromium.org>2013-06-21 12:05:49 -0700
committerCaroline Tice <cmtice@chromium.org>2013-06-21 12:05:49 -0700
commit9c1705845241cdea5cf61574218edef282901fbd (patch)
tree021da661f8a821bc7eea277521fa13f2043879a0 /gcc/testsuite/gcc.target/s390/pr57559.c
parent9bdedf4df4166718fa0a44811c643214c6880471 (diff)
parent8a46ed36b0449c870d0a938c1010ad610ebcf4f7 (diff)
downloadgcc-9c1705845241cdea5cf61574218edef282901fbd.tar.gz
Merge branch 'master' into vtv
Conflicts: gcc/ChangeLog gcc/cp/ChangeLog gcc/cp/decl2.c gcc/varasm.c libstdc++-v3/ChangeLog
Diffstat (limited to 'gcc/testsuite/gcc.target/s390/pr57559.c')
-rw-r--r--gcc/testsuite/gcc.target/s390/pr57559.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/s390/pr57559.c b/gcc/testsuite/gcc.target/s390/pr57559.c
new file mode 100644
index 00000000000..15c3878c4cf
--- /dev/null
+++ b/gcc/testsuite/gcc.target/s390/pr57559.c
@@ -0,0 +1,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;
+}