From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luc Van Oostenryck Subject: Re: sparse-llvm when generating code for op_muls, op_divs first argument may be a pointer Date: Sun, 19 Mar 2017 16:27:44 +0100 Message-ID: <20170319152743.vyapkk5234dyeq3o@macpro.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-wr0-f178.google.com ([209.85.128.178]:36267 "EHLO mail-wr0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752271AbdCSP2Z (ORCPT ); Sun, 19 Mar 2017 11:28:25 -0400 Received: by mail-wr0-f178.google.com with SMTP id u108so78146396wrb.3 for ; Sun, 19 Mar 2017 08:27:56 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Dibyendu Majumdar Cc: Linux-Sparse On Tue, Mar 14, 2017 at 01:14:20PM +0000, Dibyendu Majumdar wrote: > Sparse-llvm currently generates incorrect code for op_muls and op_divs > when the first argument is a pointer. In this case the pointer should > be converted to integer before multiplying or dividing. This is fixed in the llvm-fixes-v3 serie I submitted yesterday. -- Luc