From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125089 invoked by alias); 29 Jun 2017 15:10:37 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 125053 invoked by uid 89); 29 Jun 2017 15:10:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:233 X-HELO: EUR01-HE1-obe.outbound.protection.outlook.com Received: from mail-he1eur01on0044.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) (104.47.0.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Jun 2017 15:10:34 +0000 Received: from AM5PR0802MB2610.eurprd08.prod.outlook.com (10.175.46.18) by AM5PR0802MB2609.eurprd08.prod.outlook.com (10.175.46.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Thu, 29 Jun 2017 15:10:31 +0000 Received: from AM5PR0802MB2610.eurprd08.prod.outlook.com ([fe80::a81e:e7d3:8fc6:7bb5]) by AM5PR0802MB2610.eurprd08.prod.outlook.com ([fe80::a81e:e7d3:8fc6:7bb5%18]) with mapi id 15.01.1220.013; Thu, 29 Jun 2017 15:10:31 +0000 From: Wilco Dijkstra To: Richard Biener CC: "Naveen.Hurugalawadi@cavium.com" , nd , GCC Patches Subject: Re: [PATCH] Transform (m1 > m2) * d into m1> m2 ? d : 0 Date: Thu, 29 Jun 2017 15:10:00 -0000 Message-ID: References: , In-Reply-To: authentication-results: cavium.com; dkim=none (message not signed) header.d=none;cavium.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM5PR0802MB2609;7:AWiFdIZdNrfvh74zZYfDHB4IxX0bYb7pfz6qeEzmGynbiQjzrpHWppYXEVe5MmFETD1sFXRY81X7jQytJowxv09AVwmdsCmJoY1soSK4MLFexqNrvya7oSNBESkFTxZLxmbML0QYNEEDwitYRNJlVYal/giji2MkdN8gMStxHGbZp4aAJY87vYvtB+iYv3VCmuPJkVRThoR6ABIiAQrtl+VE2I2MN2wUrewi9IcQfS+f+5/sBLuQhlA9Qk6x8JVAiKceZ6T/qxA9i6oxyEuwW1bPlxXoy/8e7gyKTQRgPSoTHyXVN0ol9ekoSzvL+m3+N8bHaUnDTCzoL4du3s8S1DWQg5f+IHe5F+Wu5S+8vZetuXRWBKXo/4ZOM8S4vdm6cKXZpOqetR2YcZCG88H8xWDbzg71yPMycMU+B0Li15ox8uhpzVE1fXkxzYN8vfcqB8ZzbMBPsc09dAyXpUQ+YZkrxmFoNyFeXAmSMWCZq/zkvQ8Dw2NEJONrKwpJIyaKtNZ+ZjdZ7cxiB3uiz3qcaQb4BoD8wT4MK7D4PbUnEOGqOs+kzObJlAhGbDMrmyUl9ee0W6SsemJzKwxOfvkQbhVIrqIhGJ7WaQ/GM0nvlVoUXE9vndlaD55TuRM7Mlr0zfW3L4VKimXq3A55h+OxtVqu7NuMS3jJ3CdOqxZawbfkijD+dxDSfjaWGnfVJiIiKl3iRRv6pm9Rd+vxAZj/mH1GHzd0j9DTyh183yL3kLiezRnUlplbiq7wFy29oQZ2hgloxeHAL4C6UmZPGmHxG5ovWPK4ShtiW2XYcYSTs4U= x-ms-office365-filtering-correlation-id: 360079a0-1c6c-4f17-7138-08d4bf00fbe0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:AM5PR0802MB2609; x-ms-traffictypediagnostic: AM5PR0802MB2609: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM5PR0802MB2609;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM5PR0802MB2609; x-forefront-prvs: 0353563E2B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(6009001)(39450400003)(39840400002)(39860400002)(39410400002)(39850400002)(39400400002)(24454002)(189998001)(66066001)(229853002)(25786009)(33656002)(6436002)(558084003)(72206003)(6506006)(81166006)(8676002)(14454004)(2900100001)(53936002)(74316002)(305945005)(6246003)(54356999)(5250100002)(478600001)(2950100002)(4326008)(50986999)(76176999)(7696004)(86362001)(5660300001)(39060400002)(9686003)(6116002)(110136004)(54906002)(3846002)(38730400002)(102836003)(2906002)(55016002)(8936002)(6916009)(3660700001)(3280700002)(99286003)(7736002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR0802MB2609;H:AM5PR0802MB2610.eurprd08.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2017 15:10:31.1840 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2609 X-SW-Source: 2017-06/txt/msg02288.txt.bz2 Richard Biener wrote: > int f (int m, int c) > { >=A0 return (m & 1) * c; > } This case (integer[0,1] rather than boolean input) should be transformed in= to c & -(m & 1). Wilco