Re: [RFA/alpha] Add handling of FP control insn in software-single step

Daniel Jacobowitz
2005-05-17T03:44:15Z

On Tue, May 17, 2005 at 12:50:48PM +1000, Joel Brobecker wrote:
> > On Tue, May 17, 2005 at 12:34:00PM +1000, Joel Brobecker wrote:
> > > Tested on alpha-tru64 5.1a with no regression. It fixes a problem with
> > > some code but I can't contribute it, as it has been given to us by a
> > > customer.
> >
> > Can you write a test for this in gdb.arch, using an asm to provide the
> > fbeq instruction that was causing a problem?
>
> Let me see what I can do. I tend to prefer tests written in C or Ada,
> as it can be used on all platforms rather than just on alpha. But
> perhaps the usage in this case is to prefer asm?

The feature you're implementing is specific to Alpha; think of it in
the nature of unit testing.

That's not to say a test for "single step over a floating point
compare-and-branch" would be a bad thing to have in the rest of the
testsuite. But I'm sure you can imagine how hard it is to predict what
a compiler will generate.

--
Daniel Jacobowitz
CodeSourcery, LLC