Hi!

What does "powerpc < 7" mean?  Something before POWER ISA 2.06?

On Tue, Jun 11, 2024 at 04:22:54PM +0200, Rene Rebe wrote:
> Glibc uses .machine to determine assembler optimizations to use.

What does this mean?

.machine is an *output* for glibc; nothing in glibc reads source code.

Nothing the ".machine" directive does has anything to do with
optimisations.  Instead, it simply changes what architecture level is
used for the following code. what specific instructions are supported
mainly.

> --- a/gcc/testsuite/gcc.target/powerpc/pr97367.c.vanilla      2024-05-30 
> 18:26:29.839784279 +0200
> +++ b/gcc/testsuite/gcc.target/powerpc/pr97367.c      2024-10-06 
> 18:20:34.873818482 +0200
> @@ -0,0 +1,9 @@
> +/* { dg-do compile } */
> +/* { dg-options "-mdejagnu-cpu=G5" } */
> +
> +int dummy ()
> +{
> +  return 0;
> +}
> +
> +/* { dg-final { scan-assembler "power4" } } */

Please explain (in the testcase, not here!) what this is meant to test!

You probably want to say {\mpower4\M} instead, btw.  Unless you want to
match ".machine spower436" as well?


Segher

Reply via email to