This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386]: PR target/20421: frndint patterns clobber flags,4.0 branch
- From: Uros Bizjak <uros at kss-loka dot si>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 05 Apr 2005 08:36:55 +0200
- Subject: Re: [PATCH, i386]: PR target/20421: frndint patterns clobber flags,4.0 branch
- References: <425126A0.6010809@kss-loka.si> <20050405020604.GC24542@redhat.com>
Richard Henderson wrote:
* config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
(frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
Allocate local stack slots here. Set ix86_optimize_mode_switching.
flag here. Implement using define_insn_and_split.
(frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
(frndintxf2_mask_pm_i387): New insn patterns.
(floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
Do not set ix86_optimize_mode_switching flag.
(ceilsf2, ceildf2, ceilxf2): Same.
(btruncsf2, btruncdf2, btruncxf2): Same.
(nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
Ok.
The same patch could be applied (with some offset) to 4.0 branch. Patch
was bootstrapped on i686-pc-linux-gnu, regtested for c, c++ on 4.0 branch.
OK also for 4.0 branch?
Uros.