Hi!

On Thu, Feb 10, 2022 at 05:43:26PM -0500, David Edelsohn wrote:
> -mbig/-mlittle only applies to Linux, not AIX and not Darwin.
> 
> I changed the BE testcases to add "-mbig" for little endian default
> targets because the compiler implicitly should be operating in big
> endian mode for other targets and the testcases should succeed.
> 
> For the LE testcases, I changed the target selector to
> "powrpc*-*-linux*" because that is the only PowerPC target that can
> operate as little endian.  I could not find a generic "le" target
> selector.

It is fully generic.  I added it in
  commit 89453706e0032f9a9c2107631873d9dad38dc14c
  Author: Segher Boessenkool <seg...@kernel.crashing.org>
  Date:   Wed May 23 19:31:05 2018 +0200

      testsuite: Introduce be/le selectors

It is very useful, just like ilp32 / lp64 :-)

> powerpc*-*-linux* understands "-mlittle", so I left the
> dg-options clause because there is no need to separate out "-mlittle"
> for that subset of PowerPC targets.

Yes.  powerpc64le-linux is the only problematic thing (you can make
powerpc64-linux be LE as well, and in principle you can make
powerpc64le-linux be BE, that just doesn't work right now -- this all
*does* work for powerpc-linux and powerpcle-linux).

Implicit assumptions make everything harder.


Segher

Reply via email to