diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-13 20:52:22 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-13 20:52:22 +0000 |
commit | f6caf544e4b59a6f5b84163692cf4e0298e2871f (patch) | |
tree | b63bc2f9ef8cfee22069b3e9f18f91b27784384d /gcc/config/sparc | |
parent | 6141310c6ec18f9498b0725c202d28dc3f5a1ff7 (diff) | |
download | ppe42-gcc-f6caf544e4b59a6f5b84163692cf4e0298e2871f.tar.gz ppe42-gcc-f6caf544e4b59a6f5b84163692cf4e0298e2871f.zip |
* config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
zero extend SImode values being converted to TFmode before passing
to libcalls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139084 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/sparc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 045735f208c..58667a2cb19 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -2371,6 +2371,8 @@ emit_soft_tfmode_cvt (enum rtx_code code, rtx *operands) { case SImode: func = "_Qp_itoq"; + if (TARGET_ARCH64) + operands[1] = gen_rtx_SIGN_EXTEND (DImode, operands[1]); break; case DImode: func = "_Qp_xtoq"; @@ -2385,6 +2387,8 @@ emit_soft_tfmode_cvt (enum rtx_code code, rtx *operands) { case SImode: func = "_Qp_uitoq"; + if (TARGET_ARCH64) + operands[1] = gen_rtx_ZERO_EXTEND (DImode, operands[1]); break; case DImode: func = "_Qp_uxtoq"; |