On Fri, 2020-05-01 at 17:02 -0500, Segher Boessenkool wrote:
> On Fri, May 01, 2020 at 03:54:26PM -0500, will schmidt wrote:
> > > The other way around :-)  stfs is for single precision float
> > > ("float",
> > > in C), while stfd is for double precision float ("double", in C).
> > 
> > I came up with my comment based on what was being tested for
> > further
> > below.   If the comment is correct the test below is wrong.
> > (unless i mis-counted something .. always possible but worth
> > double-
> > checking).  :-)
> 
> Ah.  The order of the scan-assembler statements does not matter; for
> each, dejagnu looks at the whole file.  (And both instructions are
> generated only once).
> 

Ok, yeah, right, I misread/misunderstood your comment..  :-)  

Gist of it was that there is a mismatch between asm and comments.  


+  *(float *)(p + 1) = f;               /* should generate STFS.  */
+  *(double *)(p + 1) = d;              /* should generate STFD.  */

+/* { dg-final { scan-assembler-times {\mstfd\M}  1 } } */
+/* { dg-final { scan-assembler-times {\mstfs\M}  1 } } */


thanks,
-Will


> 
> Segher

Reply via email to