Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp399164imm; Wed, 26 Sep 2018 00:13:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV613LdPD/3w/chtXFsiSP6JrzurmsR3aW4lQGvk598hLbT7s6xnwvyGTI3TDuHZqqVBJbgPR X-Received: by 2002:a17:902:8c90:: with SMTP id t16-v6mr4509709plo.251.1537946011164; Wed, 26 Sep 2018 00:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537946011; cv=none; d=google.com; s=arc-20160816; b=u13F4Je7FpJNaPglQJyEW+CDq/mfsWZ6niwmZ6tdricwAOXWhUj9EmTt/OW5HjQVaP MAv0zJKejR+jgB7cxbcDLS/QK+CWCb8fL7E5Po/eNWc4rOvGpzd3+sb9nwc4BBWH2Lxo 0uS1M2HETKsoKZSI2AnPIIv05DPSu293zeUNLBrrk6AZVf+O6gOum6cOQyXHOY2d3CK4 G2WYA98Y7LS/GMaXPEaXVtCUX8ft+oQJA9aVckcctbUs1/PkykkqojLK/peUnit9TJWe w9wu/Qucgm+vIP+eOSA/43byS6mMkw1/oou6GStuup+YqPmeTTNKMSKTgpLmLKrpK1va Lq2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9bIXZLzJ7jUFS0/wlaunLKXPPS9gwJiu0fKbgkvIH48=; b=ZAIaWUuei+HBahkcitjYZ2aC9nv3mcYtxjG6Ag4EHtAVn/MVmUN9oDN5fh+72WJXr3 qF1UWr6ZLEmBAzeefDBYGKPoQKjj2ZHLB27iptlkseRuP9j5VrI6ABgZX7BRX0QKJroy e8l1PZ45oDcDEOKl9dfMaKZgsvebo+CzG1QuphjxkZRA+jvQ7KtlUJ/GkIERnYmDAFcF 5rzGO4ZILwI/ImVH3pi1YY3cTm2ITknuInxUza3UlfjHvXHajsMGL28vruD3zevcPDpC H9HsnckYEIorLx6ORtHjONsGtLRx6tGjw/YJDYReTcrJ2/dYnV1eZKn3jsn14vh/KdYe 3JPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LfvUU3/G"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si4583897pld.281.2018.09.26.00.13.15; Wed, 26 Sep 2018 00:13:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LfvUU3/G"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727116AbeIZNYZ (ORCPT + 99 others); Wed, 26 Sep 2018 09:24:25 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:33334 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbeIZNYZ (ORCPT ); Wed, 26 Sep 2018 09:24:25 -0400 Received: by mail-io1-f65.google.com with SMTP id l25-v6so9372334ioj.0 for ; Wed, 26 Sep 2018 00:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9bIXZLzJ7jUFS0/wlaunLKXPPS9gwJiu0fKbgkvIH48=; b=LfvUU3/GMAnAuGqjxZFRJA0/Q9iVZbAeHkSCTHxD78yeXp2stoWDIYgz/Rweh7Lxw8 C05pQcStt0gU6a9dzELWAdA3fgqhF6/0ecINMqqllv6ThVAXtoZybvd/M7tZQ0VSeQgo GIezZdcjWNElBXD1+r6G/VQw60vmECd3xUbqIFNhOR8s0XpD9Kyp7ezUEILkeS0CXSBN wQD+fv0w5louEhjxyG7SvfREByM2IN54HdBS8mGXquMhfkEmUF29FZkyknlaJt95q8SZ aZEfptMy94mfy+HyODjBpzw99Afjsq2onpm02s/ZViXqPPnYRumgncUUJfWoBFrpabm2 RXRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9bIXZLzJ7jUFS0/wlaunLKXPPS9gwJiu0fKbgkvIH48=; b=d0+1DDejrRVb0uZsN8Q15e+3E+lvvHmc9Zx6mmk1jamBvpsPngSqcK/oqt455ExVpW WitRB7EM1VFY/4svKPGGe+Gby3gTstoFe6q8xuKHX520YRxDVLekKglcr/hcd79D+ojA NxxAKa2oJYIy7c1+Yjg3q8oedC3eWB7JOM7JWWCtTIk+NIFRuC0lAdOnUxVFPYdpyVIx 8pDShqdTaEZD1QzAkSZFFDZwPi/3L/Z8uU+s2nk+Dw8PDNRK4W9k2PALT7yMqK4RZXYT JOFyjZb1oWv+V37aNRFI101ZrdASzjQ3yZyOHWTXvIqXgGI0ZO/FTyhKmw2nLlSyYb7E BmEQ== X-Gm-Message-State: ABuFfohVdGZVqCKAURbHEVwESCnQh5C+4QwfDTxBgaKxISbQLR5SgJSI dFu79sM3D2szXtDOx5F/Nsyrxz+8Ej4nlJHt4i4= X-Received: by 2002:a6b:9ace:: with SMTP id c197-v6mr3931139ioe.63.1537945976223; Wed, 26 Sep 2018 00:12:56 -0700 (PDT) MIME-Version: 1.0 References: <2ccc6c0758624dbb22f6fe451a3e476a000108ef.1537260207.git.zongbox@gmail.com> <20180921070006.GC8401@infradead.org> In-Reply-To: From: Zong Li Date: Wed, 26 Sep 2018 15:12:45 +0800 Message-ID: Subject: Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines To: schwab@suse.de Cc: hch@infradead.org, Palmer Dabbelt , aou@eecs.berkeley.edu, Vincent Chen , Zong Li , linux-riscv@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andreas Schwab =E6=96=BC 2018=E5=B9=B49=E6=9C=8825=E6=97= =A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=883:20=E5=AF=AB=E9=81=93=EF=BC=9A > > On Sep 25 2018, Zong Li wrote: > > > The RV32 need the umoddi3 to do modulo when the operands are long long > > type, like other libraries implementation such as ucmpdi2, lshrdi3 and > > so on. I encounter the undefined reference 'umoddi3' when I use the in > > house dma driver, although it is in house driver, but I think that > > umoddi3 is a common function for RV32. > > You probably should use the macros from instead. Hi Andreas, This doesn't work for me, the divisor of my case is also long long type.