This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, i386]: Unify TARGET_SSE_MATH for float* patterns


On Wed, Dec 15, 2004 at 07:39:27AM +0100, Uros Bizjak wrote:
> Before this pattern, we have:
> 
> (define_expand "floathisf2"
>  [(set (match_operand:SF 0 "register_operand" "")
>    (float:SF (match_operand:HI 1 "nonimmediate_operand" "")))]
>  "TARGET_80387 || TARGET_SSE_MATH"
> {
>  if (TARGET_SSE_MATH)
>    {
>      emit_insn (gen_floatsisf2 (operands[0],
>                 convert_to_mode (SImode, operands[1], 0)));

Yes, I saw that, but I have faith in the ability of combine
to see though this trick.

I suppose we could enable the pattern if mixed mode is on,
if you care to make that refinement.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]