public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite patch] add code to arm_thumbX_ok to exercise ABI
@ 2014-08-08  0:30 Janis Johnson
  2014-08-08 10:40 ` Richard Earnshaw
  2014-08-18 14:36 ` Christophe Lyon
  0 siblings, 2 replies; 4+ messages in thread
From: Janis Johnson @ 2014-08-08  0:30 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

Running an arm-none-eabi test that adds "-mthumb" for a multilib that
uses "-march=armv5te -mfloat-abi=hard" works fine if the test doesn't
have any calls, but if it does then the effective-target checks for
arm_thumb1_ok and arm_thumb2_ok pass but the test's compile step fails
with "sorry, unimplemented: Thumb-1 hard-float VFP ABI".

This patch adds code to those effective-target checks to exercise
argument handling and causes them to fail for the multilib flags
listed above.  Tested by running gcc.target/arm tests with a variety
of multilib flags.  OK for mainline and the 4.9 branch?

Janis

[-- Attachment #2: gcc-20140807-1 --]
[-- Type: text/plain, Size: 749 bytes --]

2014-08-07  Janis Johnson  <janisjo@codesourcery.com>

	* lib/target-supports.exp (check_effective_target_arm_thumb1_ok,
	check_effective_target_arm_thumb2_ok): Test with code that passes
	an argument and returns a result.

Index: gcc/testsuite/lib/target-supports.exp
===================================================================
--- gcc/testsuite/lib/target-supports.exp	(revision 213683)
+++ gcc/testsuite/lib/target-supports.exp	(working copy)
@@ -2761,6 +2761,7 @@
 	#if !defined(__arm__) || !defined(__thumb__) || defined(__thumb2__)
 	#error FOO
 	#endif
+	int foo (int i) { return i; }
     } "-mthumb"]
 }
 
@@ -2772,6 +2773,7 @@
 	#if !defined(__thumb2__)
 	#error FOO
 	#endif
+	int foo (int i) { return i; }
     } "-mthumb"]
 }
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [testsuite patch] add code to arm_thumbX_ok to exercise ABI
  2014-08-08  0:30 [testsuite patch] add code to arm_thumbX_ok to exercise ABI Janis Johnson
@ 2014-08-08 10:40 ` Richard Earnshaw
  2014-08-18 14:36 ` Christophe Lyon
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Earnshaw @ 2014-08-08 10:40 UTC (permalink / raw)
  To: janisjo; +Cc: Janis Johnson, gcc-patches

On 08/08/14 01:30, Janis Johnson wrote:
> Running an arm-none-eabi test that adds "-mthumb" for a multilib that
> uses "-march=armv5te -mfloat-abi=hard" works fine if the test doesn't
> have any calls, but if it does then the effective-target checks for
> arm_thumb1_ok and arm_thumb2_ok pass but the test's compile step fails
> with "sorry, unimplemented: Thumb-1 hard-float VFP ABI".
> 
> This patch adds code to those effective-target checks to exercise
> argument handling and causes them to fail for the multilib flags
> listed above.  Tested by running gcc.target/arm tests with a variety
> of multilib flags.  OK for mainline and the 4.9 branch?
> 
> Janis
> 
> 
> gcc-20140807-1
> 
> 
> 2014-08-07  Janis Johnson  <janisjo@codesourcery.com>
> 
> 	* lib/target-supports.exp (check_effective_target_arm_thumb1_ok,
> 	check_effective_target_arm_thumb2_ok): Test with code that passes
> 	an argument and returns a result.
> 

OK.

R.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [testsuite patch] add code to arm_thumbX_ok to exercise ABI
  2014-08-08  0:30 [testsuite patch] add code to arm_thumbX_ok to exercise ABI Janis Johnson
  2014-08-08 10:40 ` Richard Earnshaw
@ 2014-08-18 14:36 ` Christophe Lyon
  2014-08-18 15:33   ` Janis Johnson
  1 sibling, 1 reply; 4+ messages in thread
From: Christophe Lyon @ 2014-08-18 14:36 UTC (permalink / raw)
  To: janisjo; +Cc: gcc-patches

On 8 August 2014 02:30, Janis Johnson <janis_johnson@mentor.com> wrote:
> Running an arm-none-eabi test that adds "-mthumb" for a multilib that
> uses "-march=armv5te -mfloat-abi=hard" works fine if the test doesn't
> have any calls, but if it does then the effective-target checks for
> arm_thumb1_ok and arm_thumb2_ok pass but the test's compile step fails
> with "sorry, unimplemented: Thumb-1 hard-float VFP ABI".
>
> This patch adds code to those effective-target checks to exercise
> argument handling and causes them to fail for the multilib flags
> listed above.  Tested by running gcc.target/arm tests with a variety
> of multilib flags.  OK for mainline and the 4.9 branch?
>
> Janis

Some time ago (https://gcc.gnu.org/ml/gcc-patches/2012-09/msg01501.html)
I suggested to add similar stuff to check_effective_target_arm_arch_FUNC_ok
for similar reasons.

Do you agree?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [testsuite patch] add code to arm_thumbX_ok to exercise ABI
  2014-08-18 14:36 ` Christophe Lyon
@ 2014-08-18 15:33   ` Janis Johnson
  0 siblings, 0 replies; 4+ messages in thread
From: Janis Johnson @ 2014-08-18 15:33 UTC (permalink / raw)
  To: Christophe Lyon, janisjo; +Cc: gcc-patches

On 08/18/2014 07:36 AM, Christophe Lyon wrote:
> On 8 August 2014 02:30, Janis Johnson <janis_johnson@mentor.com> wrote:
>> Running an arm-none-eabi test that adds "-mthumb" for a multilib that
>> uses "-march=armv5te -mfloat-abi=hard" works fine if the test doesn't
>> have any calls, but if it does then the effective-target checks for
>> arm_thumb1_ok and arm_thumb2_ok pass but the test's compile step fails
>> with "sorry, unimplemented: Thumb-1 hard-float VFP ABI".
>>
>> This patch adds code to those effective-target checks to exercise
>> argument handling and causes them to fail for the multilib flags
>> listed above.  Tested by running gcc.target/arm tests with a variety
>> of multilib flags.  OK for mainline and the 4.9 branch?
>>
>> Janis
> 
> Some time ago (https://gcc.gnu.org/ml/gcc-patches/2012-09/msg01501.html)
> I suggested to add similar stuff to check_effective_target_arm_arch_FUNC_ok
> for similar reasons.
> 
> Do you agree?
> 

I agree but I prefer to have one of the ARM maintainers approve changes
like that; we sometimes have different philosophies about how to handle
additional options in tests.

Janis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-18 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08  0:30 [testsuite patch] add code to arm_thumbX_ok to exercise ABI Janis Johnson
2014-08-08 10:40 ` Richard Earnshaw
2014-08-18 14:36 ` Christophe Lyon
2014-08-18 15:33   ` Janis Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).