From patchwork Mon Apr 7 14:53:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Bolton X-Patchwork-Id: 337476 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 148D41400E3 for ; Tue, 8 Apr 2014 00:53:32 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=SS/0RREm9QLrv9QzKHPwVVBronDdR zkDY0+o/WDs97yq940e8HARNnb1oJPDibuLL7jnhqEa/ZMNqm4weIEjbxykf6bHK zZcOQVwgI+vAKxGm4Fg44ZINs5w6YR5MRbb9AaUCoi6hPwq7ZHoNSu2rP5D8e2Le iuk52JM8TL6VCw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=4fP4O0DOgQTWv6n65A15UtHs3+I=; b=TdU xCPXl3nZK0UISFh6aGLRjIvBm3IEdy5wCV7MFMqRLVLuisZGqcpk6zLMBBE8OkUg lhShcSZUT6pKMJ1L4APIn4YXtusSZ7Trm9prKxWnAdlg63mHCVrJvySnz0aeaq3I GFXJi/1zUpceX+Zq9pW89Y6YGai6ZjZAsNPpwELE= Received: (qmail 2853 invoked by alias); 7 Apr 2014 14:53:17 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 2746 invoked by uid 89); 7 Apr 2014 14:53:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, MSGID_MULTIPLE_AT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: service87.mimecast.com From: "Ian Bolton" To: Subject: [PATCH] [AArch64] Add fenv test support for AArch64 Date: Mon, 7 Apr 2014 15:53:22 +0100 Message-ID: <000001cf5271$1f7b2560$5e717020$@bolton@arm.com> MIME-Version: 1.0 x-cr-hashedpuzzle: AsIT A7+V BLg8 B7Pr D02f EGX8 EKVY FPVF GDS7 GF2r G3qz Hhwl IOhm KYGH K7H7 K8vg; 1; bABpAGIAYwAtAGEAbABwAGgAYQBAAHMAbwB1AHIAYwBlAHcAYQByAGUALgBvAHIAZwA=; Sosha1_v1; 7; {02EC5B1D-854A-423C-B108-81FF57D1FA3A}; aQBhAG4ALgBiAG8AbAB0AG8AbgBAAGEAcgBtAC4AYwBvAG0A; Mon, 07 Apr 2014 14:53:20 GMT; WwBQAEEAVABDAEgAXQAgAFsAQQBBAHIAYwBoADYANABdACAAQQBkAGQAIABmAGUAbgB2ACAAdABlAHMAdAAgAHMAdQBwAHAAbwByAHQAIABmAG8AcgAgAEEAQQByAGMAaAA2ADQA x-cr-puzzleid: {02EC5B1D-854A-423C-B108-81FF57D1FA3A} X-MC-Unique: 114040715531201401 This is a simple patch for AArch64 that builds on Wilco's patch: https://sourceware.org/ml/libc-alpha/2014-03/msg00592.html The math/test-fenv test now passes with this. OK for commit once Wilco's patch is in? Cheers, Ian 2014-04-07 Ian Bolton * sysdeps/aarch64/math-tests.h: New file. diff --git a/sysdeps/aarch64/math-tests.h b/sysdeps/aarch64/math-tests.h new file mode 100644 index 0000000..febfad7 --- /dev/null +++ b/sysdeps/aarch64/math-tests.h @@ -0,0 +1,22 @@ +/* Configuration for math tests. AArch64 version. + Copyright (C) 2014 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* Trapping exceptions are optional on AArch64. */ +#define EXCEPTION_ENABLE_SUPPORTED(EXCEPT) ((EXCEPT) == 0) + +#include_next