Patchwork [AArch64] : Fix test harness to for unaligned vector mem access.

login
register
mail settings
Submitter Tejas Belagod
Date Dec. 19, 2012, 2:47 p.m.
Message ID <50D1D38C.7010205@arm.com>
Download mbox | patch
Permalink /patch/207371/
State New
Headers show

Comments

Tejas Belagod - Dec. 19, 2012, 2:47 p.m.
Hi,

Currently on the trunk, we have many vect tests that fail for aarch64-*-*
because check_effective_target_vect_no_align () in target-supports.exp returns
true for aarch64 where in fact it should be returning false. This causes the
tests that check for vect_no_align and expect messages for loop versioning to
fail. The attached patch drops aarch64 from the list of targets in
check_effective_target_vect_no_align () as unaligned access is supported.

Tested on trunk for aarch64-none-elf with no regressions. OK for trunk?

Thanks,
Tejas Belagod
ARM.

Changelog:

2012-12-19  Tejas Belagod  <tejas.belagod@arm.com>

testsuite/
	* lib/target-supports.exp
	(check_effective_target_vect_no_align): Remove aarch64 from list of
	targets.
Richard Earnshaw - Dec. 19, 2012, 2:55 p.m.
On 19/12/12 14:47, Tejas Belagod wrote:
>
> Hi,
>
> Currently on the trunk, we have many vect tests that fail for aarch64-*-*
> because check_effective_target_vect_no_align () in target-supports.exp returns
> true for aarch64 where in fact it should be returning false. This causes the
> tests that check for vect_no_align and expect messages for loop versioning to
> fail. The attached patch drops aarch64 from the list of targets in
> check_effective_target_vect_no_align () as unaligned access is supported.
>
> Tested on trunk for aarch64-none-elf with no regressions. OK for trunk?
>
> Thanks,
> Tejas Belagod
> ARM.
>
> Changelog:
>
> 2012-12-19  Tejas Belagod  <tejas.belagod@arm.com>
>
> testsuite/
> 	* lib/target-supports.exp
> 	(check_effective_target_vect_no_align): Remove aarch64 from list of
> 	targets.
>
>

OK.

R.

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index e541c12..c20ec5e 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -3488,7 +3488,6 @@  proc check_effective_target_vect_no_align { } {
 	if { [istarget mipsisa64*-*-*]
 	     || [istarget sparc*-*-*]
 	     || [istarget ia64-*-*]
-	     || [istarget aarch64-*-*]
 	     || [check_effective_target_arm_vect_no_misalign]
 	     || ([istarget mips*-*-*]
 		 && [check_effective_target_mips_loongson]) } {