Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753174AbbKWCgu (ORCPT ); Sun, 22 Nov 2015 21:36:50 -0500 Received: from mail-qk0-f176.google.com ([209.85.220.176]:32877 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752985AbbKWCgs (ORCPT ); Sun, 22 Nov 2015 21:36:48 -0500 Date: Sun, 22 Nov 2015 21:36:45 -0500 (EST) From: Nicolas Pitre To: Arnd Bergmann cc: Russell King - ARM Linux , Peter Maydell , =?ISO-8859-15?Q?M=E5ns_Rullg=E5rd?= , "linux-arm-msm@vger.kernel.org" , Stephen Boyd , lkml - Kernel Mailing List , Steven Rostedt , arm-mail-list Subject: Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions In-Reply-To: <4527012.vmieWOaE32@wuerfel> Message-ID: References: <1448068997-26631-1-git-send-email-sboyd@codeaurora.org> <6840047.0HF9qAEq6r@wuerfel> <20151122194704.GJ8644@n2100.arm.linux.org.uk> <4527012.vmieWOaE32@wuerfel> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 46 On Sun, 22 Nov 2015, Arnd Bergmann wrote: > I've also found some /proc/cpuinfo output to cross-reference SoCs > to their core names. > > variant part revision name features > dove: 0 0x581 5 PJ4 idivt I just managed to boot my dusty Dove DB and ran a quick test programon it. Its cpuinfo corresponds to the above. $ cat m.c #include int mydiv(int, int); int main() { printf("div test\n"); printf("%d\n", mydiv(12345678, 37)); return 0; } $ cat d.c int mydiv(int x, int y) { return x/y; } $ gcc -o test m.c d.c $ ./test div test 333666 $ gcc -o test m.c d.c -march=armv7ve -mthumb $ ./test div test 333666 $ gcc -o test m.c d.c -march=armv7ve -marm $ ./test div test Illegal instruction (core dumped) $ Nicolas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/