From patchwork Fri May 31 07:34:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1108196 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-502034-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sandoe.co.uk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="XSy2PtQB"; dkim-atps=neutral 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 45FbnT2qsxz9sDX for ; Fri, 31 May 2019 17:34:53 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; q=dns; s=default; b=SidW2SWuBbKisU7jUCrX 9lhQCXF3qx5TZT1DNMlzy3/aCxVA/1ZKHV73tRMAD5tEn3Q6ezivPnsuKjpUwNXK TBPomMJnv/Rc3oV0o0iM1isymvqV/zHWPWXdx+2NFQffWb1EIo5sPZ/xnqwLXcf/ oMpL8S0Te4UHx/sMufPZUUw= 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 :content-type:content-transfer-encoding:mime-version:subject :message-id:date:cc:to; s=default; bh=CEeStPgZSdzyDffiQv1sYMs6nc A=; b=XSy2PtQBJVPZNTK3ZmSu3V2aM2ajOJ03OS2iGScfUteoQizK+/I6gInE1n cykDtc4Om7O8orOpVTdlN1qqj1PRKUacw7UVOKSPiydWuJzlZhcjLuqDTZdNxGkV sHhymfa+lrrzut2XQsFDfLG55YvJsYoiOltUfxUR0b+Utb3s0= Received: (qmail 90663 invoked by alias); 31 May 2019 07:34:46 -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 90547 invoked by uid 89); 31 May 2019 07:34:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_COUK autolearn=ham version=3.3.1 spammy=white-space, HX-Spam-Relays-External:ESMTPA X-HELO: smtp1.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp1.wavenetuk.net) (195.26.36.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 May 2019 07:34:45 +0000 Received: from euterpe-sie.home (host81-138-1-83.in-addr.btopenworld.com [81.138.1.83]) by smtp1.wavenetuk.net (Postfix) with ESMTPA id 1DA3A12014FF; Fri, 31 May 2019 08:34:42 +0100 (BST) From: Iain Sandoe Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [PATCH, Darwin, X86, testsuite] Adjust tests for Darwin's align syntax. Message-Id: <084A3AD4-148A-4C5C-8BD6-85DCBE98BC1B@sandoe.co.uk> Date: Fri, 31 May 2019 08:34:38 +0100 Cc: Uros Bizjak To: GCC Patches Darwin has a .align taking a power of 2 by default, so that some tests in i386.exp expecting a byte count are failing, likewise there is a white-space difference in the output in one case, and the perennial missing __USER_LABEL_PREFIX__. fixed thus. tested on x86_64-darwin16 and x86_64-linux-gnu (--target_board=unix\{-m32,-m64\}\{,-fpic\}) aplied as obvious to mainline, thanks Iain gcc/testsuite/ 2019-05-31 Iain Sandoe * gcc.target/i386/falign-functions-3.c: Adjust align syntax and label for Darwin. * gcc.target/i386/attr-aligned-2.c: Adjust align syntax for Darwin. diff --git a/gcc/testsuite/gcc.target/i386/attr-aligned-2.c b/gcc/testsuite/gcc.target/i386/attr-aligned-2.c index b99a28a8f3..3841782020 100644 --- a/gcc/testsuite/gcc.target/i386/attr-aligned-2.c +++ b/gcc/testsuite/gcc.target/i386/attr-aligned-2.c @@ -14,8 +14,8 @@ void f4 (void); ALIGN (4) void f4 (void) { } -/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" } } */ - +/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" { target { ! *-*-darwin* } } } } */ +/* { dg-final { scan-assembler {.align[ \t]2,0x90\n\t.globl[ \t]_f4} { target *-*-darwin* } } } */ void g (void) { } diff --git a/gcc/testsuite/gcc.target/i386/falign-functions-3.c b/gcc/testsuite/gcc.target/i386/falign-functions-3.c index f4a6acee0c..86423c4e4a 100644 --- a/gcc/testsuite/gcc.target/i386/falign-functions-3.c +++ b/gcc/testsuite/gcc.target/i386/falign-functions-3.c @@ -9,15 +9,16 @@ ALIGN (4) void f4 (void) { } -/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" } } */ - +/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" { target { ! *-*-darwin* } } } } */ +/* { dg-final { scan-assembler {.align 2,0x90\n\t.globl[ \t]_f4} { target *-*-darwin* } } } */ void f32 (void) { } -/* { dg-final { scan-assembler ".p2align 5\n\t.globl\tf32" } } */ +/* { dg-final { scan-assembler {.p2align 5\n\t.globl[ \t]_?f32} } } */ ALIGN (64) void f64 (void) { } -/* { dg-final { scan-assembler ".align 64\n\t.globl\tf64" } } */ +/* { dg-final { scan-assembler ".align 64\n\t.globl\tf64" { target { ! *-*-darwin* } } } } */ +/* { dg-final { scan-assembler {.align 6,0x90\n\t.globl[ \t]_f64} { target *-*-darwin* } } } */