1 /* { dg-do compile { target { powerpc*-*-darwin* powerpc*-*-aix* rs6000-*-* powerpc*-*-linux* } } } */ 2 /* { dg-options "-O2 -mlong-double-128 -fpic" } */ 3 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]; 16 }; 17 struct ebfp { 18 long double v; 19 }; 20 void put_ebfp (struct ebfp *); 21 s390_convert_fix32_to_bfp_ext_reg(REGS * regs)22void s390_convert_fix32_to_bfp_ext_reg (REGS *regs) 23 { 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); 30 } 31