diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-21 05:05:25 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-21 05:05:25 +0000 |
commit | 3970e8910fe5cfbdfcdb502b5e2aa2a53a92fda4 (patch) | |
tree | 14cce2eb5e6754f2aa1439ec07c12abe2e8eb43a /gcc/config | |
parent | 3cec36a15562e71b08093df20cef43a8792bf2e7 (diff) | |
download | gcc-3970e8910fe5cfbdfcdb502b5e2aa2a53a92fda4.tar.gz |
* config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_usgl): New function.
* config/pa/long_double.h (FIXUNS_TRUNCTFSI2_LIBCALL): Added.
(INIT_TARGET_OPTABS): Use FIXUNS_TRUNCTFSI2_LIBCALL for
fixunstfsi_libfunc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/pa/long_double.h | 3 | ||||
-rw-r--r-- | gcc/config/pa/quadlib.c | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/config/pa/long_double.h b/gcc/config/pa/long_double.h index 92d03761e0f..e65f15f9345 100644 --- a/gcc/config/pa/long_double.h +++ b/gcc/config/pa/long_double.h @@ -52,6 +52,7 @@ do { long value[4]; \ we can massage its return value for PA64. */ #define FIX_TRUNCTFSI2_LIBCALL \ (TARGET_64BIT ? "__U_Qfcnvfxt_quad_to_sgl" : "_U_Qfcnvfxt_quad_to_sgl") +#define FIXUNS_TRUNCTFSI2_LIBCALL "_U_Qfcnvfxt_quad_to_usgl" #define FIX_TRUNCTFDI2_LIBCALL "_U_Qfcnvfxt_quad_to_dbl" #define EQTF2_LIBCALL "_U_Qfeq" #define NETF2_LIBCALL "_U_Qfne" @@ -89,7 +90,7 @@ do { long value[4]; \ floatditf_libfunc = gen_rtx_SYMBOL_REF (Pmode, FLOATDITF2_LIBCALL); \ fixtfsi_libfunc = gen_rtx_SYMBOL_REF (Pmode, FIX_TRUNCTFSI2_LIBCALL);\ fixtfdi_libfunc = gen_rtx_SYMBOL_REF (Pmode, FIX_TRUNCTFDI2_LIBCALL);\ - fixunstfsi_libfunc = gen_rtx_SYMBOL_REF (Pmode, FIX_TRUNCTFSI2_LIBCALL); \ + fixunstfsi_libfunc = gen_rtx_SYMBOL_REF (Pmode, FIXUNS_TRUNCTFSI2_LIBCALL);\ fixunstfdi_libfunc = gen_rtx_SYMBOL_REF (Pmode, FIX_TRUNCTFDI2_LIBCALL); \ eqtf2_libfunc = gen_rtx_SYMBOL_REF (Pmode, EQTF2_LIBCALL); \ netf2_libfunc = gen_rtx_SYMBOL_REF (Pmode, NETF2_LIBCALL); \ diff --git a/gcc/config/pa/quadlib.c b/gcc/config/pa/quadlib.c index 598e0c297cb..cdf3ea989db 100644 --- a/gcc/config/pa/quadlib.c +++ b/gcc/config/pa/quadlib.c @@ -92,3 +92,12 @@ __U_Qfcnvfxt_quad_to_sgl (long double a) return _U_Qfcnvfxt_quad_to_sgl (a) >> 32; } #endif + +/* HP only has signed conversion in library, so need to synthesize an + unsigned version */ +unsigned int +_U_Qfcnvfxt_quad_to_usgl(long double a) +{ + extern long long _U_Qfcnvfxt_quad_to_dbl (long double a); + return (unsigned int) _U_Qfcnvfxt_quad_to_dbl (a); +} |