From patchwork Fri Aug 13 05:59:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [vect] Ask for review and approving the patch about vect and loongson From: Mingjie Xing X-Patchwork-Id: 61663 Message-Id: To: rdsandiford@googlemail.com, richard.guenther@gmail.com, gcc-patches@gcc.gnu.org Date: Fri, 13 Aug 2010 13:59:06 +0800 Hello, > Eric Fisher writes: >> Thanks. I've updated the patch in the attachment. > > Watch the formatting: the (match_operand: ...)s should line up vertically. > > The patch is OK with that change. Obviously we'll have to wait until > the copyright assignment is sorted out before the patches can be applied. > > Richard > My GCC assignment/disclaimer process with the FSF is currently complete. I've put the previously reviewed patches in the attachment and changed the contact also. Mingjie Xing gcc/ChangeLog * loongson.md: Change define_insn "loongson_pmull" to "mul3". * mips.c: Add "#define CODE_FOR_loongson_pmullh CODE_FOR_mulv4hi3". testsuite/ChangeLog * fast-math-vect-reduc-8.c: Move dg-require-effective-target after dg-do. * vect.exp: Run the vect testsuite when the target is loongson* * target-supports.exp: Check loongson target in vector specific attributes. BTW, I don't have write access to svn. Regards, Mingjie Index: testsuite/lib/target-supports.exp =================================================================== --- testsuite/lib/target-supports.exp (revision 163219) +++ testsuite/lib/target-supports.exp (working copy) @@ -1620,7 +1620,9 @@ proc check_effective_target_vect_int { } || [istarget sparc*-*-*] || [istarget alpha*-*-*] || [istarget ia64-*-*] - || [check_effective_target_arm32] } { + || [check_effective_target_arm32] + || ([istarget mips*-*-*] + && [check_effective_target_mips_loongson]) } { set et_vect_int_saved 1 } } @@ -2156,7 +2158,9 @@ proc check_effective_target_vect_shift { || [istarget ia64-*-*] || [istarget i?86-*-*] || [istarget x86_64-*-*] - || [check_effective_target_arm32] } { + || [check_effective_target_arm32] + || ([istarget mips*-*-*] + && [check_effective_target_mips_loongson]) } { set et_vect_shift_saved 1 } } @@ -2270,7 +2274,9 @@ proc check_effective_target_vect_no_int_ set et_vect_no_int_max_saved 0 if { [istarget sparc*-*-*] || [istarget spu-*-*] - || [istarget alpha*-*-*] } { + || [istarget alpha*-*-*] + || ([istarget mips*-*-*] + && [check_effective_target_mips_loongson]) } { set et_vect_no_int_max_saved 1 } } @@ -2643,7 +2649,9 @@ proc check_effective_target_vect_no_alig if { [istarget mipsisa64*-*-*] || [istarget sparc*-*-*] || [istarget ia64-*-*] - || [check_effective_target_arm32] } { + || [check_effective_target_arm32] + || ([istarget mips*-*-*] + && [check_effective_target_mips_loongson]) } { set et_vect_no_align_saved 1 } } @@ -2833,8 +2841,10 @@ proc check_effective_target_vect_short_m || [istarget spu-*-*] || [istarget i?86-*-*] || [istarget x86_64-*-*] - || [istarget powerpc*-*-*] - || [check_effective_target_arm32] } { + || [istarget powerpc*-*-*] + || [check_effective_target_arm32] + || ([istarget mips*-*-*] + && [check_effective_target_mips_loongson]) } { set et_vect_short_mult_saved 1 } }