From patchwork Mon Jul 6 13:34:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bennett X-Patchwork-Id: 491617 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 6B20C140DBC for ; Mon, 6 Jul 2015 23:34:20 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=uOxu4wBq; 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=Z65 0lzb0v0CWAQAtLCGrxSVxKC7z5j2484PjBQXLSfKx5pbnzDRFJlHlRFbFPDIqFJg BaWICciKccgeBOI4fAw22cA6k3xaa7neWEunmblsxWfBjj+MpsAxHhBCIVEZ4k0H EmvUqqaVAZlGX3y49414wgp1c0vaIfYI+TU17FRg= 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=W1r+SFSSr sT21P4DFPoIC6JulLw=; b=uOxu4wBqdAxFt10Pv2UnNDf7i+20RHzCQC6xyqvPS ymxKJti0ttVimcjTDnrJz1il62lwWYEgsyL8IFDJKbFxh00bpPOojaBErBEz+NJT CeXz9lwTr+U1wI4xMQG2E4r8BuqnEt4RiicYY5fi0OkqsDBumCfCSBD2Txz/YzdB D4= Received: (qmail 92634 invoked by alias); 6 Jul 2015 13:34:14 -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 90985 invoked by uid 89); 6 Jul 2015 13:34:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 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; Mon, 06 Jul 2015 13:34:13 +0000 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id B9BCC1148C3D7; Mon, 6 Jul 2015 14:34:07 +0100 (IST) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 6 Jul 2015 14:34:10 +0100 Received: from LEMAIL01.le.imgtec.org ([fe80::5ae:ee16:f4b9:cda9]) by LEMAIL01.le.imgtec.org ([fe80::5ae:ee16:f4b9:cda9%17]) with mapi id 14.03.0210.002; Mon, 6 Jul 2015 14:34:10 +0100 From: Andrew Bennett To: "gcc-patches@gcc.gnu.org" CC: Matthew Fortune , "Moore, Catherine (Catherine_Moore@mentor.com)" Subject: [PATCH] MIPS: Do not generate micromips code for the no-smartmips-lwxs.c testcase Date: Mon, 6 Jul 2015 13:34:09 +0000 Message-ID: <0DA23CC379F5F945ACB41CF394B98277210EEB37@LEMAIL01.le.imgtec.org> MIME-Version: 1.0 X-IsSubscribed: yes Hi, The LWXS instruction is part of the micromips ISA which means it is valid to generate it for the no-smartmips-lwxs.c testcase. I have updated the dg-options for the test to ensure that it does not generate micromips code. I have tested this on the mips-mti-elf target using mips32r2/{-mno-micromips/-mmicromips} test options and there are no new regressions. The patch and ChangeLog are below. Ok to commit? Many thanks, Andrew testsuite/ * gcc.target/mips/no-smartmips-lwxs.c: Add -mno-micromips to dg-options. diff --git a/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c b/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c index ecf856e..6701a1c 100644 --- a/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c +++ b/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mno-smartmips" } */ +/* { dg-options "-mno-smartmips -mno-micromips" } */ NOMIPS16 int scaled_indexed_word_load (int a[], int b) {