On 08/25/2015 08:11 AM, Nathan Sidwell wrote:
Ptx is one of those rare (unique?) machines that doesn't have an
indirect branch. optabs is prepared for such a target and emits a
sorry when an indirect branch is needed. However it then goes on to try
and emit such an instruction and ends up ICEing.
Fixed thusly, ok? (Or is the right solution to define a dummy indirect
branch in the PTX md file?)
I think we're trying to generally get away from dummy patterns.
We could emulate by creating a new stack frame and shoving the target of
the branch into the stack, then executing a return. However, I don't
think that's worth doing ;-)
I think the patch is fine for the trunk.
jeff