diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 20:47:40 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-22 20:47:40 +0000 |
commit | efe9184865d3408705f273bdb7dbddafbdb2c778 (patch) | |
tree | 8d94656fe95d158621c4e607e6935a98b11634de /gcc/optabs.c | |
parent | d74ca5f4de221f9396fd5bc3776055f8d88c57d0 (diff) | |
download | gcc-efe9184865d3408705f273bdb7dbddafbdb2c778.tar.gz |
* optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
(gen_extend_insn, can_fix_p, can_float_p): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34087 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 9f9871581aa..8007da35a71 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3807,7 +3807,7 @@ can_extend_p (to_mode, from_mode, unsignedp) enum machine_mode to_mode, from_mode; int unsignedp; { - return extendtab[(int) to_mode][(int) from_mode][unsignedp]; + return extendtab[(int) to_mode][(int) from_mode][unsignedp != 0]; } /* Generate the body of an insn to extend Y (with mode MFROM) @@ -3819,7 +3819,7 @@ gen_extend_insn (x, y, mto, mfrom, unsignedp) enum machine_mode mto, mfrom; int unsignedp; { - return (GEN_FCN (extendtab[(int) mto][(int) mfrom][unsignedp]) (x, y)); + return (GEN_FCN (extendtab[(int) mto][(int) mfrom][unsignedp != 0]) (x, y)); } /* can_fix_p and can_float_p say whether the target machine @@ -3838,13 +3838,14 @@ can_fix_p (fixmode, fltmode, unsignedp, truncp_ptr) int *truncp_ptr; { *truncp_ptr = 0; - if (fixtrunctab[(int) fltmode][(int) fixmode][unsignedp] != CODE_FOR_nothing) - return fixtrunctab[(int) fltmode][(int) fixmode][unsignedp]; + if (fixtrunctab[(int) fltmode][(int) fixmode][unsignedp != 0] + != CODE_FOR_nothing) + return fixtrunctab[(int) fltmode][(int) fixmode][unsignedp != 0]; if (ftrunc_optab->handlers[(int) fltmode].insn_code != CODE_FOR_nothing) { *truncp_ptr = 1; - return fixtab[(int) fltmode][(int) fixmode][unsignedp]; + return fixtab[(int) fltmode][(int) fixmode][unsignedp != 0]; } return CODE_FOR_nothing; } @@ -3854,7 +3855,7 @@ can_float_p (fltmode, fixmode, unsignedp) enum machine_mode fixmode, fltmode; int unsignedp; { - return floattab[(int) fltmode][(int) fixmode][unsignedp]; + return floattab[(int) fltmode][(int) fixmode][unsignedp != 0]; } /* Generate code to convert FROM to floating point |