From patchwork Fri Dec 9 09:47:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toma Tabacu X-Patchwork-Id: 704382 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tZnTJ2DRcz9vDh for ; Fri, 9 Dec 2016 20:47:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="s2aq8fyg"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=lE3 f4rQeVPsRZH3WaqXmmL4nwC4czVFQOkH1Nc8arypULSy3MFWD8uEqnjGZog396Aw wqcGNag9C8ixVz6cE5haEDQ9GxXqfCP+5Bxsw9jIqEX9s5LSyTmhCUSSyGImyW2z 38ZWO8Rtu9FumaPX1nz7QLUUNpjxQmUqgjJXoelA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=y+Ddmt0f3 OEG3vfOJDK+DBNtUWA=; b=s2aq8fygsMwgtospyQ+IOFbGO9E1LmQaoyRaqq2XZ 1JMaZWxORHw8fHaLK7NSvFTu7TXKpa8nK+YLlVSZU+0RiytiJzWxHf40tX9fhBeK zhv2Mzex2ObO6qqJvsj0tNlHIMJ2H9BoFyrb/53FEuv2lpUekc2cKskPEDy1B+vu ag= Received: (qmail 111872 invoked by alias); 9 Dec 2016 09:47:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 111221 invoked by uid 89); 9 Dec 2016 09:47:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1217 X-HELO: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Dec 2016 09:47:17 +0000 Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Forcepoint Email with ESMTPS id 75CB579C16FF; Fri, 9 Dec 2016 09:47:11 +0000 (GMT) Received: from HHMAIL01.hh.imgtec.org ([fe80::710b:f219:72bc:e0b3]) by hhmail02.hh.imgtec.org ([fe80::5400:d33e:81a4:f775%25]) with mapi id 14.03.0294.000; Fri, 9 Dec 2016 09:47:14 +0000 From: Toma Tabacu To: "gcc-patches@gcc.gnu.org" CC: Matthew Fortune , "catherine_moore@mentor.com" Subject: [PATCH, testsuite] MIPS: Upgrade to R2 for -mnan=2008 and -mabs=2008. Date: Fri, 9 Dec 2016 09:47:13 +0000 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi, The -mnan=2008 and -mabs=2008 options are not supported on pre-R2 targets. This results in failures for tests which use these options, such as nan-2008.c, fabs-2008.c etc. This patch makes the testsuite upgrade to R2 if -mnan=2008 and -mabs=2008 are used as test options. Tested with mips-mti-elf. Regards, Toma Tabacu gcc/testsuite/ChangeLog: * gcc.target/mips/mips.exp (mips-dg-options): Upgrade to R2 for -mnan=2008 and -mabs=2008. diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index c0b9680..3d04d2f 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -1145,7 +1145,9 @@ proc mips-dg-options { args } { || [mips_have_test_option_p options "HAS_INS"] || [mips_have_test_option_p options "HAS_MADD"] || [mips_have_test_option_p options "HAS_MADDPS"] - || [mips_have_test_option_p options "-mdspr2"]) } { + || [mips_have_test_option_p options "-mdspr2"] + || [mips_have_test_option_p options "-mnan=2008"] + || [mips_have_test_option_p options "-mabs=2008"]) } { if { $gp_size == 32 } { mips_make_test_option options "-mips32r2" } else {