diff mbox

[vect] Ask for review and approving the patch about vect and loongson

Message ID AANLkTim4mcBD0YHh9gBEpPOMszMf-K5uO438Jklc_pt3@mail.gmail.com
State New
Headers show

Commit Message

Eric Fisher July 9, 2010, 10:44 a.m. UTC
2010/7/9 Richard Guenther <richard.guenther@gmail.com>:
> On Fri, Jul 9, 2010 at 10:39 AM, Eric Fisher <joefoxreal@gmail.com> wrote:
>> 2010/7/9 Richard Guenther <richard.guenther@gmail.com>:
>>>
>>> How about splitting the patch?
>>>
>>> Richard.
>>>
>>
>> Thanks. I put the patch separately now. And the ChageLogs,
>
> The sourcebuild.texi and the fast-math-vect-reduc-8 patch are ok.
>
> Richard.

I would like to rewrite the vect.exp patch as the following
attachment, which looks better than before.

ChangeLog
  * vect.exp: add check for loongson target

Thanks,
Eric
diff mbox

Patch

Index: testsuite/gcc.dg/vect/vect.exp
===================================================================
--- testsuite/gcc.dg/vect/vect.exp	(revision 161865)
+++ testsuite/gcc.dg/vect/vect.exp	(working copy)
@@ -77,9 +77,12 @@  if  [istarget "powerpc-*paired*"]  {
 	set dg-do-what-default compile
     }
 } elseif { [istarget "mips*-*-*"]
-	   && [check_effective_target_mpaired_single]
+	   && ([check_effective_target_mpaired_single]
+               || [check_effective_target_mips_loongson])
 	   && [check_effective_target_nomips16] } {
-    lappend DEFAULT_VECTCFLAGS "-mpaired-single"
+    if { [check_effective_target_mpaired_single] } {
+        lappend DEFAULT_VECTCFLAGS "-mpaired-single"
+    }
     set dg-do-what-default run
 } elseif [istarget "sparc*-*-*"] {
     lappend DEFAULT_VECTCFLAGS "-mcpu=ultrasparc" "-mvis"