From patchwork Thu Apr 1 16:11:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Coplan X-Patchwork-Id: 1461185 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=i2UKMJzY; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FB7VN2Y6Gz9sPf for ; Fri, 2 Apr 2021 03:11:55 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 924213844072; Thu, 1 Apr 2021 16:11:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 924213844072 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1617293511; bh=NDQF8xUAaCzhb71euvVuGPAcWf7S0sIhHDBgn95ykOc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=i2UKMJzYCghRN0m6c1TjjXG934ibHqPILTZbUDiXnyyzcN2kYgvbVwflkfzX/gP1/ ipRerBBwOG1fln39rKIfIuMEPjq3uHez3GcL1utLI5OYrApz90nrcTo72yf9ajAn46 PrcHZMPu7RSIC1ppM9rnwJ7XdqPBCr5dMt0+JgmM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50059.outbound.protection.outlook.com [40.107.5.59]) by sourceware.org (Postfix) with ESMTPS id EA1FA3858012 for ; Thu, 1 Apr 2021 16:11:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EA1FA3858012 Received: from AM5PR1001CA0063.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:15::40) by PR3PR08MB5610.eurprd08.prod.outlook.com (2603:10a6:102:91::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Thu, 1 Apr 2021 16:11:45 +0000 Received: from AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:15:cafe::14) by AM5PR1001CA0063.outlook.office365.com (2603:10a6:206:15::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27 via Frontend Transport; Thu, 1 Apr 2021 16:11:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;gcc.gnu.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT004.mail.protection.outlook.com (10.152.16.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25 via Frontend Transport; Thu, 1 Apr 2021 16:11:45 +0000 Received: ("Tessian outbound 47ca92dabae7:v90"); Thu, 01 Apr 2021 16:11:44 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: fbb9b4cf8fa7e102 X-CR-MTA-TID: 64aa7808 Received: from c2b4970187ff.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E434E938-B8B0-4A91-AF6C-301788682EC4.1; Thu, 01 Apr 2021 16:11:28 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c2b4970187ff.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 01 Apr 2021 16:11:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JEJxGYUf4Ooayj5eSpL79Ouk7j2JYyrRiFlW0vc0/oHkVIc3uupX1SbX77qZ4hn32byNGJaDMHRH8UOrItei5QhxA7RVFZQhzr9w24ToIwi3HAwCBva7JyQY/PBlmXfgUytsKNKmmE6er1PDli174d/nS4fMBL+ypBJF62stgIN+wJVK7vflocWMV581ldbDdfkRr3LWkSrXPst0ltOp90eAFUNT2R1I7/Mg3FkX+mIEyDp7SMDFQRBvjfmYtNoFkSGlmQyWZ1FtRZRYsA0slMKQvRTgY7ImivQ2E6K7IU65Bt5wy96fKTE0rpHlfBYP/c6is05jXLeahvi3HmBZYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NDQF8xUAaCzhb71euvVuGPAcWf7S0sIhHDBgn95ykOc=; b=d7YldFUJEXqDc+tj0ZggVGUSqQrDzClgvWpMc/wegVUn9REaqOy66u2wULXkbtjRw0WhUhj5Uay+c5A5ECEv77poQ4t3ft6DGIF8HUVewd2txdHtPMnFFQ+ISBZu/tRkXSvat5Z355SaKi2kkWAgVHQHEQ3hVXE9RD4BgU4dsWSEvt+b/W6/bsZE6OiyfsWUFqdMVjR5bptcUW3zYcdmNSzKjvCL4xriR+CXOXBIpQqtiWRXCQNGmbeP6J1ChMlEVISBgxddsGBE+n/9RZXnxOZgE/Mg5l9EnG3LjTNIJLd3gMn4xntBN60zdSb1XTlhZWHtPiSX9G/QkrZhnwL2gA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB4029.eurprd08.prod.outlook.com (2603:10a6:803:ec::14) by VI1PR08MB4141.eurprd08.prod.outlook.com (2603:10a6:803:ed::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.26; Thu, 1 Apr 2021 16:11:24 +0000 Received: from VI1PR08MB4029.eurprd08.prod.outlook.com ([fe80::91e5:a54c:eda6:49b2]) by VI1PR08MB4029.eurprd08.prod.outlook.com ([fe80::91e5:a54c:eda6:49b2%4]) with mapi id 15.20.3999.028; Thu, 1 Apr 2021 16:11:17 +0000 Date: Thu, 1 Apr 2021 17:11:14 +0100 To: gcc-patches@gcc.gnu.org Subject: [PATCH] arm: Fix PCS for SFmode -> SImode libcalls [PR99748] Message-ID: <20210401161113.3eztd7en7eku4a32@arm.com> Content-Disposition: inline User-Agent: NeoMutt/20171215 X-Originating-IP: [217.140.106.55] X-ClientProxiedBy: LO2P123CA0107.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:139::22) To VI1PR08MB4029.eurprd08.prod.outlook.com (2603:10a6:803:ec::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.55) by LO2P123CA0107.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:139::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.32 via Frontend Transport; Thu, 1 Apr 2021 16:11:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 33ea5fdd-4932-4b50-10c3-08d8f528d86c X-MS-TrafficTypeDiagnostic: VI1PR08MB4141:|PR3PR08MB5610: X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:6790;OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: GSXbCmY5WgCqdg0TlbEeT01NADnwH2FP1TIauO5oi0yGvEIH6XchrIwILNvELJh2HgOywW8jMXlDi1zQ1tWWzlgVzxx+NOdVtXTwrQDOjHC2CJQPv6LthZqIdV8LKGhE4Xujb36cMbsuLL4khQZ5gYQ3IK600lH6pj2HU2r4FxPJdLx5xzWsRXyUqwBlYxczXKjsVXCOuvQK0Z60sv9WhjoeznqGX1XugnevgSSkJwqGVuWAK4Lzzqt5slwOAeBYGqszHf/B9ESd3pA8fxrtS5d+wwhQ6Ekrg+Br3juez95dPoPXK1Kwh4fg/Dn3aoWznlrNFJ4/NpdtkUzlk3MDNMJqxGt46bsGiBX8M7JmbGT7kBxxNOjadQWAke2Y9rx191CG6RjniGYMLEWsr0pwOnYQYoNaayUv2KQcoKYBydLqO7FMG7qMEKvhUqv5Sg6VmDVMOYCHf4IzqGFLf4WWFkusdCQXVAmrabyOOXQFoBK+7iMutnT6F8PGjbHTnFolipAUEZ/MEtLIJ+dIGjcFclKxAys0Pia/QY/zaCW3UKY+1FBljcy7s/BK2z8ODhZHpT1Z7IG/Or7cYLQwmRkJpJ9saAWvDFC4dMZNf4XgUq8dsQ9sSlny6eZFjHjjbX2IPj6ttPRe94YvZJZM1iOvFquQlU1DX4LRlsrDOifME9h53a0mtT4LaV9RqimJ61FN X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB4029.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(136003)(39860400002)(396003)(366004)(956004)(186003)(38100700001)(66946007)(8936002)(86362001)(8676002)(16526019)(55016002)(26005)(44832011)(6916009)(36756003)(316002)(4326008)(8886007)(52116002)(54906003)(33964004)(66556008)(7696005)(44144004)(66476007)(2616005)(5660300002)(21480400003)(235185007)(1076003)(478600001)(66616009)(83380400001)(2906002)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?nzROoF3yF9SzzRGV0U/2GREk69U2Pq?= =?utf-8?q?gsCFj/SKjv4NX3aRBLhyDdV+Xw0llJ74CdE4p3eyIwBz4bIXwakRHny3X7lnfrJXW?= =?utf-8?q?G/1o84tP3m5oenqmngIKHviNKPpumGa/l+yaUkCta6ZusPFT1hy4zdBBy60zAI4d9?= =?utf-8?q?AZc7Da98L25jjA6BrqZ0b264ZkMrM0ZIQeEqXHhtRmfA76hJ81EBdZKu7ro26CXRQ?= =?utf-8?q?nyUZsxA06p3vD4HiCdTsN2MWQIP8yyXT8XXwaDd3edp2Kq8pzw+WN/abiGrRE/F3n?= =?utf-8?q?60L3gCJuQHKSELT25YJKL+wzMFfZQ/FPe9PvXdSM35LPFsdPQ3D10MjZsa1lpH7JD?= =?utf-8?q?iPhUI3MMoSCGrfZGnLaV7MyO0vPC8GrffCaTxjKCAu7fnSiMPU3dKg7AcIfoyRryA?= =?utf-8?q?ktcmnnWcal+ez96BbyDwPQ1Ttb3DSvxmyyvtmq7295FLhkK09i3jQQeObjyUBMiFX?= =?utf-8?q?xGpUUKnZlPa/B1+3896jAmCIF7wZXt2v+zPdx5EO5hBuZpVjY/Weqkwfjy4ZhfVX2?= =?utf-8?q?RwkZIx9Cvp5Eu6F8fjZ9nOLgq6PWib0XMIAKL97gMRIuR56MLlXLHz0UhElMNgh/7?= =?utf-8?q?9RVvb0mL9I5FXOgboYcA+7BQgoW2Rl6vU4aEJque1RjrnXut8t/cKDcksdrhcWjjX?= =?utf-8?q?H87l81UFOz74UWz5BegmEc8PAEFijZfXs+Dx6ldd9giHgDKnxuWivOrNj6gttSt1f?= =?utf-8?q?y0tUs73C0v7iwAi0JQExcS/5XY8f2mLaYyBZWS4PKWMwikmM7ERTCNHUJFdvGIxki?= =?utf-8?q?DEmOQd8Fj/qh3DZMbSXcjOf7YjWyJ++oaPqYyH/kgIYAE2fsaFYKiCKIo6/sMSeV4?= =?utf-8?q?ubASsbTZMZ4e0uRjDfmsXwgycAzfUSB/UmH6l6o4jzCgydxTTsaRgs2ILGOeN/iPt?= =?utf-8?q?NMp02hPCOUwRoRKlkRJTh8EMvvZbe/6n3IAhh2lRMM3vngm+Q4NjTNdI0EZyuiDHe?= =?utf-8?q?IJQqO7GKllU8OXN2x8TRvaFKYv8yp2nWIIMdBfuVEykEW/Q1XAfAAaB6GRGh9P8D2?= =?utf-8?q?VTmLaHH+xezKv8erH/vmq2xVyTIgPRwSzMmhAef9hX6FDv93Mlv5Vbu5Hy959rU8P?= =?utf-8?q?ZZFfhiXR/HLHm8oat31NU0Vbd1E7y45BdEUbllHc+R4tM+kBmecqi+yaQHdW8+kq/?= =?utf-8?q?ox+nPbj5RUGn+fH3GY0VOFaHL5ls9SADIPdujKuZNZ9CTRFfFJSMw3w95t739VpYg?= =?utf-8?q?1H9s34Yn9uKtrJM9+wgxs8C8s/1SKTiMKT+kOyrx1xgS98YWbvW8VI3ZTAy2TLqpp?= =?utf-8?q?rgBXd3UzXuHRVI?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4141 Original-Authentication-Results: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: cbcb15f1-75c2-4197-9b63-08d8f528c742 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V1Tcqp3lypm8kc2HuEClt1QR7TgOH90s+n+k4mNauGKycAjqJ2uVYFnixchsjNeILIPQPA0WatBIopbcPjRV+JjOBHnoimkswpQUqw3a4u3fo+yw3q+ZdSB9t0WGcUSriYLvWtMy9fxW2hZV4fyHatCBAZDTP3WpFFljdZ6l3MLDHnQG287JGHyCQizQ1iwLsvGqJmpCDt6qT7eod/DKQ4SbKnibPvgpnwE8pZDk4As4B/fb/fJ71/5Tiy4y6R6lo3adxlkHRB02ufolHIaXB95P7HGuwwhGlJz4EhFGn8m/0i6Qky+IkeoCJyK32tKcP00XH+y3bvGQEXDp/W22YUpEjoNbvxY9IqpUWZKgAEtDxfO6lkGjsFF5f9yYrwQwerx2n9KyKYwwYuBS+NwnMNeNzapLAxZ4U77ONf2GPHv29O++1mQ+OTmldhz1qGPnibunfyQRpEHbTG1nmtJN0lw7ux5qVI590i0VSmaNy8BwToEvi1QnAv0Jbz/ZmGF0ID3W4mls5nGwxkiZsx6ULLacyOzVls+lnyxlnGkr9uZ+NcItle12SYKN+W7CPRfJo0hkqhPcA/YeCCOoUcf31YzuIIwV7SkgTlbT9w1E5Ug9kqJc36Itix9J3YRsdmx6uEw/K6WHp7RDKaluoAakZqqC8L76fsYz7j4SJf1fi7umfLtxrH7eV2wHlB8kQazz X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(39860400002)(136003)(376002)(346002)(396003)(46966006)(36840700001)(6916009)(8676002)(83380400001)(356005)(186003)(47076005)(36756003)(16526019)(33964004)(956004)(86362001)(8886007)(70206006)(44832011)(8936002)(44144004)(4326008)(82740400003)(5660300002)(82310400003)(336012)(55016002)(21480400003)(54906003)(7696005)(2906002)(1076003)(70586007)(235185007)(66616009)(81166007)(316002)(2616005)(478600001)(26005)(36860700001)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2021 16:11:45.0784 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 33ea5fdd-4932-4b50-10c3-08d8f528d86c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5610 X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alex Coplan via Gcc-patches From: Alex Coplan Reply-To: Alex Coplan Cc: Richard Earnshaw , Ramana Radhakrishnan Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hi all, This patch fixes PR99748 which shows us trying to pass the argument to __aeabi_f2iz in the VFP register s0 when the library function is expecting to use the GPR r0. It also fixes the __aeabi_f2uiz case which was broken in the same way. For the testcase in the PR, here is the code we generate before the patch (with -mfloat-abi=hard -march=armv8.1-m.main+mve -O0): main: push {r7, lr} sub sp, sp, #8 add r7, sp, #0 mov r3, #1065353216 str r3, [r7, #4] @ float vldr.32 s0, [r7, #4] bl __aeabi_f2iz mov r3, r0 cmp r3, #1 [...] This becomes: main: push {r7, lr} sub sp, sp, #8 add r7, sp, #0 mov r3, #1065353216 str r3, [r7, #4] @ float ldr r0, [r7, #4] @ float bl __aeabi_f2iz mov r3, r0 cmp r3, #1 [...] after the patch. We see a similar change for the same testcase with a cast to unsigned instead of int. Testing: * Bootstrapped and regtested on arm-linux-gnueabihf, no regressions. * Regtested an arm-eabi cross configured with --with-float=hard --with-arch=armv8.1-m.main+mve. This shows that the patch fixes the following execution failures: FAIL->PASS: gcc.c-torture/execute/20000605-1.c -O0 execution test FAIL->PASS: gcc.c-torture/execute/conversion.c -O0 execution test FAIL->PASS: gcc.c-torture/execute/float-floor.c -O0 execution test FAIL->PASS: gcc.c-torture/execute/float-floor.c -O1 execution test FAIL->PASS: gcc.c-torture/execute/float-floor.c -O2 execution test FAIL->PASS: gcc.c-torture/execute/float-floor.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test FAIL->PASS: gcc.c-torture/execute/float-floor.c -O3 -g execution test FAIL->PASS: gcc.c-torture/execute/float-floor.c -Os execution test FAIL->PASS: gcc.c-torture/execute/gofast.c -O0 execution test FAIL->PASS: gcc.dg/torture/float32-basic.c -O0 execution test FAIL->PASS: gcc.dg/torture/float32-basic.c -O1 execution test FAIL->PASS: gcc.dg/torture/float32-basic.c -O2 execution test FAIL->PASS: gcc.dg/torture/float32-basic.c -O2 -flto -fno-use-linker-plugin -flto-partition=none execution test FAIL->PASS: gcc.dg/torture/float32-basic.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test FAIL->PASS: gcc.dg/torture/float32-basic.c -O3 -g execution test FAIL->PASS: gcc.dg/torture/float32-basic.c -Os execution test OK for trunk? Thanks, Alex gcc/ChangeLog: * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base PCS for [su]fix_optab. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 518bfed1c35..8910dad8214 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -5773,6 +5773,10 @@ arm_libcall_uses_aapcs_base (const_rtx libcall) convert_optab_libfunc (sfix_optab, DImode, SFmode)); add_libcall (libcall_htab, convert_optab_libfunc (ufix_optab, DImode, SFmode)); + add_libcall (libcall_htab, + convert_optab_libfunc (sfix_optab, SImode, SFmode)); + add_libcall (libcall_htab, + convert_optab_libfunc (ufix_optab, SImode, SFmode)); /* Values from double-precision helper functions are returned in core registers if the selected core only supports single-precision