From patchwork Sat Aug 6 21:40:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 108799 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 7AFEDB6F7A for ; Sun, 7 Aug 2011 07:40:31 +1000 (EST) Received: (qmail 3792 invoked by alias); 6 Aug 2011 21:40:29 -0000 Received: (qmail 3783 invoked by uid 22791); 6 Aug 2011 21:40:29 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f41.google.com (HELO mail-ww0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 06 Aug 2011 21:40:12 +0000 Received: by wwj26 with SMTP id 26so1398385wwj.2 for ; Sat, 06 Aug 2011 14:40:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.52.2 with SMTP id z2mr1751426wfz.413.1312666811155; Sat, 06 Aug 2011 14:40:11 -0700 (PDT) Received: by 10.142.247.35 with HTTP; Sat, 6 Aug 2011 14:40:11 -0700 (PDT) Date: Sat, 6 Aug 2011 23:40:11 +0200 Message-ID: Subject: [PATCH, alpha]: Fix g++.dg/opt/devirt2.C, use specific scan pattern for alpha*-*-* From: Uros Bizjak To: gcc-patches@gcc.gnu.org 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 Hello! 2011-08-06 Uros Bizjak PR testsuite/48727 * g++.dg/opt/devirt2.C: Use specific pattern for alpha*-*-*. Tested on alphaev68-pc-linux-gnu, committed to mainline SVN. Uros. Index: g++.dg/opt/devirt2.C =================================================================== --- g++.dg/opt/devirt2.C (revision 177536) +++ g++.dg/opt/devirt2.C (working copy) @@ -1,10 +1,13 @@ // { dg-do compile } // { dg-options "-O2" } +// { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { alpha*-*-* hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } } // The IA64 and HPPA compilers generate external declarations in addition // to the call so those scans need to be more specific. -// { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } } // { dg-final { scan-assembler-times "br\[^\n\]*xyzzy" 2 { target ia64*-*-hpux* } } } // { dg-final { scan-assembler-times "xyzzy\[^\n\]*,%r" 2 { target hppa*-*-* } } } +// If assembler supports explicit relocation directives, the alpha compiler generates +// literal/lituse_jsr pairs, so the scans need to be more specific. +// { dg-final { scan-assembler-times "jsr\[^\n\]*xyzzy" 2 { target alpha*-*-* } } } // Unless the assembler supports -relax, the 32-bit SPARC compiler generates // sethi/jmp instead of just call, so the scans need to be more specific. // With subexpressions, Tcl regexp -inline -all returns both the complete