Re: Constant folding problems between snoot and porky

Sven Verdoolaege <[email protected]> Wed, 04 Jan 2006 16:18:22 +0100
Newsgroups gmane.comp.compilers.suif.bugs
Message-ID <[email protected]>
On Wed, Jan 04, 2006 at 02:37:52PM +0000, Timothy Jones wrote:
> My problem is that I don't know where the error is. Does anybody know
> why in line 6: of the output, snoot converts the value to an i.32 type?

It's this part of gen.cc:

        /*
         *  Mgen also can't handle direct converts between floating point and
         *  integers of any size other than word size.  So we need to go
         *  through that size first.
         */
        else if (((old_type->op() == TYPE_FLOAT) &&
                  ((new_type->op() == TYPE_INT) || new_type->is_enum()) &&
                  (new_type->size() != type_signed->size())) ||
                 ((new_type->op() == TYPE_FLOAT) &&
                  ((old_type->op() == TYPE_INT) || old_type->is_enum()) &&
                  (old_type->size() != type_signed->size())))
          {
[..]
          }

skimo
_______________________________________________
To unsubscribe, send mail to [email protected]
or visit http://suif.stanford.edu/mailman/listinfo/suif-bugs