This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,testsuite] fix darwin-longlong.c for 32-bit simulator targets


On Mon, 2009-01-12 at 13:24 -0800, Nathan Froyd wrote:
> gcc.target/powerpc/darwin-longlong.c uses SIGILL to determine whether
> the target has 64-bit instruction support.  However, newlib lets
> applications that use signal() link successfully, but the registered
> signal handler doesn't actually get invoked.  Therefore, it's better to
> use a dg-require-effective-target test rather than a runtime check.
> 
> Tested on powerpc-none-eabi.  OK to commit?

The support that's being checked is what's provided by -mpowerpc64,
so "powerpc64" would be a better name than "ppc64".

There's a comment in the new check_* proc "Some simulators are known to
not support VMX instructions."; I assume that should be "powerpc64"
instead of "VMX".

Explicitly add the targets from the (removed) xfail as not supporting
powerpc64 instructions.

Support for powerpc64 instructions depends on more than just being able
to execute them so I think this test should have been restricted to
Darwin in the first place, but the patch is OK with these changes.

Janis

> -Nathan
> 
> 2009-01-12  Daniel Jacobowitz  <dan@codesourcery.com>
> 
> 	* lib/target-supports.exp (check_effective_target_ppc64): New.
> 	* gcc.target/powerpc/darwin-longlong.c: Explicitly require 64-bit
> 	instruction support.  Do not check for it at runtime.
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]