This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.4-BIB] Add i386 trunc/nearbyint patterns II
On Fri, Nov 08, 2002 at 11:58:02AM +0100, Jan Hubicka wrote:
> + ;; FP control word required by the instruction.
> + ;; UNINITIALIZED is used in case instruction can change rounding mode and saved copies
> + ;; of it needs to be updated
> + (define_attr "fp_cw" "round_down,uninitialized,any"
I think this is a confusing way to express this, especially since this
isn't the control word itself, but the cached copy of the control word
with the rounding mode set to a known value.
> + (define_expand "truncsf2"
> + [(set (match_operand:SF 0 "register_operand" "=f")
> + (unspec:SF [(match_operand:SF 1 "register_operand" "0")] UNSPEC_TRUNC))]
> + "! TARGET_NO_FANCY_MATH_387 && TARGET_80387"
> + "")
And "trunc" is already a reserved name that does not mean "floor".
r~