diff options
author | Joseph Myers <joseph@codesourcery.com> | 2008-08-13 21:52:22 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2008-08-13 21:52:22 +0100 |
commit | 926930342b3fc590cb4086b92c6338180c0ff194 (patch) | |
tree | b63bc2f9ef8cfee22069b3e9f18f91b27784384d /gcc/config/sparc | |
parent | 9f3c92569ea2bbb26f55e3162af1378e072ba6e9 (diff) | |
download | gcc-926930342b3fc590cb4086b92c6338180c0ff194.zip gcc-926930342b3fc590cb4086b92c6338180c0ff194.tar.gz gcc-926930342b3fc590cb4086b92c6338180c0ff194.tar.bz2 |
sparc.c (emit_soft_tfmode_cvt): Explicitly sign or zero extend SImode values being converted to TFmode before...
* config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
zero extend SImode values being converted to TFmode before passing
to libcalls.
From-SVN: r139084
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 045735f..58667a2 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"; |