From 3186be22b6598fbd467b126347d1c7f48ccb7f71 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 14 Jan 2016 16:43:34 -0800 Subject: Check in a pristine copy of GCC 4.8.1. The copy of GCC that we use for Android is still not working for mingw. Rather than finding all the differences that have crept into our GCC, just check in a copy from ftp://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.8.1.tar.bz2. GCC 4.8.1 was chosen because it is what we have been using for mingw thus far, and the emulator doesn't yet work when upgrading to 4.9. Bug: http://b/26523949 Change-Id: Iedc0f05243d4332cc27ccd46b8a4b203c88dcaa3 --- .../gcc/testsuite/gcc.target/powerpc/pr26350.c | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/pr26350.c (limited to 'gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/pr26350.c') diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/pr26350.c b/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/pr26350.c new file mode 100644 index 000000000..6b4b20627 --- /dev/null +++ b/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/pr26350.c @@ -0,0 +1,29 @@ +/* { dg-do compile { target { powerpc*-*-darwin* powerpc*-*-aix* rs6000-*-* powerpc*-*-linux* } } } */ +/* { dg-options "-O2 -mlong-double-128 -fpic" } */ + +typedef int int32_t __attribute__ ((__mode__ (__SI__))); +typedef unsigned char uint8_t; +typedef unsigned int uint32_t; +typedef struct REGS REGS; +typedef union { uint32_t F; } FW; +typedef union { struct { FW L; } F; } DW; +typedef struct _PSW { + DW ia; +} PSW; +struct REGS { + PSW psw; + DW cr[16]; +}; +struct ebfp { + long double v; +}; + +void s390_convert_fix32_to_bfp_ext_reg (REGS *regs) +{ + struct ebfp op1; + int32_t op2; + ((regs))->psw.ia.F.L.F += (4); + if(!((regs)->cr[(0)].F.L.F & 0x00040000)) + op1.v = (long double)op2; + put_ebfp(&op1); +} -- cgit v1.2.3