diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-18 08:37:03 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-18 08:37:03 +0000 |
commit | 2749a22e7792c668b993b34612b44e08f1c4ba13 (patch) | |
tree | d7635534fc437172a0dd851e19abf9a09c51b3a7 /gcc/testsuite/gcc.dg/pr31344.c | |
parent | 4baf1a770281b84e1d1a728c7a73019ee472a557 (diff) | |
download | gcc-2749a22e7792c668b993b34612b44e08f1c4ba13.tar.gz |
PR rtl-optimization/31344
* expr.c (emit_move_change_mode): Change mode of push operands here.
testsuite/ChangeLog:
PR rtl-optimization/31344
* gcc.dg/pr31344.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124825 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr31344.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr31344.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr31344.c b/gcc/testsuite/gcc.dg/pr31344.c new file mode 100644 index 00000000000..a01439b7e0e --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr31344.c @@ -0,0 +1,25 @@ +/* { dg-do compile { target dfp } } */ +/* { dg-options "-O -std=gnu99 -mtune=i386" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ +/* { dg-options "-O -std=gnu99" } */ + +typedef struct +{ + unsigned char bits; +} decNumber; + +typedef struct +{ + unsigned char bytes[1]; +} decimal32; + +extern decNumber *__decimal32ToNumber (const decimal32 *, decNumber *); +extern void __host_to_ieee_32 (_Decimal32, decimal32 *); + +void +foo (_Decimal32 arg) +{ + decNumber dn; + decimal32 d32; + __host_to_ieee_32 (arg, &d32); + __decimal32ToNumber (&d32, &dn); +} |