Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr26350.c
blobee081602e2f3b0a378c49aeb7b1f2d0c3b90fa86
1 /* { dg-do compile { target { powerpc*-*-darwin* powerpc*-*-aix* rs6000-*-* powerpc*-*-linux* } } } */
2 /* { dg-options "-O2 -mlong-double-128 -fpic" } */
4 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
5 typedef unsigned char uint8_t;
6 typedef unsigned int uint32_t;
7 typedef struct REGS REGS;
8 typedef union { uint32_t F; } FW;
9 typedef union { struct { FW L; } F; } DW;
10 typedef struct _PSW {
11 DW ia;
12 } PSW;
13 struct REGS {
14 PSW psw;
15 DW cr[16];
17 struct ebfp {
18 long double v;
20 void put_ebfp (struct ebfp *);
22 void s390_convert_fix32_to_bfp_ext_reg (REGS *regs)
24 struct ebfp op1;
25 int32_t op2;
26 ((regs))->psw.ia.F.L.F += (4);
27 if(!((regs)->cr[(0)].F.L.F & 0x00040000))
28 op1.v = (long double)op2;
29 put_ebfp(&op1);