From patchwork Fri Aug 3 21:15:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 175049 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]) by ozlabs.org (Postfix) with SMTP id 9DF9C2C0040 for ; Sat, 4 Aug 2012 07:15:39 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1344633339; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=oKW/avP 6OdGBLG5MgDrKcZxIP1M=; b=kOWTt0JqvL6R19QSWLQ/T+oPtwr7aHmIGiKKS4+ cQWhhDnC88Ymr/ArEZPVsbHoahJ1o94jwOUpZ41lkeIFFlVi7+GhzWPgFFdqQmSb yFhjnjDBpLe69dCDzDKLSsCI54nDcZqDN4CcN41jUtXwS94puvUghN1nfTjxgiRo eyNg= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=g4y816u6INjLNVwYNt406Sspz2A0MolusvgirLFIcb5ZBYoW24dmCsw6dCs0pE aSrmwnlXzOah1lgFtTE45LGdPHlemxjXcJsukIwDTSg5ecdEr1D51B8DAgpQp9GN G88wy4s+kw6ZubYLb8OQXqTjyJHEIUSY3zCytTjJQPyRk=; Received: (qmail 20062 invoked by alias); 3 Aug 2012 21:15:35 -0000 Received: (qmail 20049 invoked by uid 22791); 3 Aug 2012 21:15:34 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, TW_MT X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Aug 2012 21:15:22 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SxPDN-0005uj-4s from Sandra_Loosemore@mentor.com for gcc-patches@gcc.gnu.org; Fri, 03 Aug 2012 14:15:21 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 3 Aug 2012 14:15:20 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Fri, 3 Aug 2012 14:15:20 -0700 Message-ID: <501C3F6C.2070808@codesourcery.com> Date: Fri, 3 Aug 2012 15:15:24 -0600 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Subject: [PATCH, MIPS] fix clear cache test cases 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 Some MIPS configurations #define CACHE_FLUSH_FUNC to something other than "_flush_cache", This fixes the two test cases that currently have that name wired in to know about the netbsd and sdemtk names too. OK for mainline? -Sandra 2012-08-03 Sandra Loosemore Catherine Moore gcc/testsuite/ * gcc.target/mips/clear-cache-1.c: Test for alternate cache flush function names too. * gcc.target/mips/clear-cache-1.c: Likewise. Index: gcc/testsuite/gcc.target/mips/clear-cache-1.c =================================================================== --- gcc/testsuite/gcc.target/mips/clear-cache-1.c (revision 190052) +++ gcc/testsuite/gcc.target/mips/clear-cache-1.c (working copy) @@ -2,7 +2,7 @@ /* { dg-options "-O2 -msynci isa_rev>=2" } */ /* { dg-final { scan-assembler "synci" } } */ /* { dg-final { scan-assembler "jr.hb" } } */ -/* { dg-final { scan-assembler-not "_flush_cache" } } */ +/* { dg-final { scan-assembler-not "_flush_cache|mips_sync_icache|_cacheflush" } } */ NOMIPS16 void f() { Index: gcc/testsuite/gcc.target/mips/clear-cache-2.c =================================================================== --- gcc/testsuite/gcc.target/mips/clear-cache-2.c (revision 190052) +++ gcc/testsuite/gcc.target/mips/clear-cache-2.c (working copy) @@ -2,7 +2,7 @@ /* { dg-options "-O2 -mips32" } */ /* { dg-final { scan-assembler-not "synci" } } */ /* { dg-final { scan-assembler-not "jr.hb" } } */ -/* { dg-final { scan-assembler "_flush_cache" } } */ +/* { dg-final { scan-assembler "_flush_cache|mips_sync_icache|_cacheflush" } } */ void f() {