reg-stack.c (swap_to_top): New function.
authorUros Bizjak <uros@kss-loka.si>
Thu, 29 Apr 2004 07:19:25 +0000 (09:19 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 29 Apr 2004 07:19:25 +0000 (09:19 +0200)
commitf964bd29f1d8a34990937c5a13e4356257e43a80
tree827e4443f76d6de7e65f84cbf80cfc3ba9151699
parentfe6663350dd69453ef7689da7aa1a09ea4c2a9b2
reg-stack.c (swap_to_top): New function.

2004-04-23  Uros Bizjak  <uros@kss-loka.si>

        * reg-stack.c (swap_to_top): New function.
        (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use\
        swap_to_top().
        (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
        (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
        UNSPEC_FSCALE_EXP.

        * config/i386/i386.md (UNSPEC_FSCALE): Remove.
        (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
        (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
        x87's fscale insn.
        (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
        (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
        patterns.

From-SVN: r81278
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/reg-stack.c