T3E port III
Roman Lechtchinsky
rl@cs.tu-berlin.de
Thu Sep 13 09:03:00 GMT 2001
On Tue, 11 Sep 2001, Richard Henderson wrote:
> -(define_expand "divsi3_umk"
>
> This can't possibly work, since there is no divdi3 pattern,
> just a library call. You shouldn't have needed anything here.
I have now remembered why I've added this in the first place. Without
this, gcc calls __divsi3 instead of $sldiv (the DImode division
subroutine) in the following function:
typedef int T __attribute ((mode (HI)));
T f (T x, T y) { return x/y; }
It doesn't do that if I change T to QImode or SImode or if I add the
pattern you've removed. This isn't supposed to happen, right? I'll try to
find out where gcc gets confused.
Bye
Roman
More information about the Gcc-patches
mailing list