From owner-freebsd-arm@FreeBSD.ORG Wed Sep 4 12:51:56 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 267A9AF7 for ; Wed, 4 Sep 2013 12:51:56 +0000 (UTC) (envelope-from taguchi.ch@gmail.com) Received: from mail-pb0-x22d.google.com (mail-pb0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ECAB32107 for ; Wed, 4 Sep 2013 12:51:55 +0000 (UTC) Received: by mail-pb0-f45.google.com with SMTP id mc17so251798pbc.18 for ; Wed, 04 Sep 2013 05:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=qk5VV6BZ/kz3RBBnLOHjhpQFqqneoecmqZ2zLtr2f3U=; b=LZLDr04a3C7CX7Krfb/LSoHZsMrNZURjK4wHqCOPNrXf/0x16DYohr4fw0iC4WEk7L dT4hDDpLDCBb7tvWYkcaz/leW+b3Nj5UUGGv3dwD3v/p4Ce6Vpls3tgZG6/r8r1m797e uexM60ZCCvY/7YE0TjIPylohc0hY/Ei3UPNuwP1bXRPLp0tbyTx4k34mIhGdvjnSmtgo 9+TrxSXlqDciKf2g6hffNLCg2vDOT7+sQXfHrwuV3bUB7YA5zr/Sfvsb72WcakZq+SN3 b2PpJ8fs5kopyrhCkwQZ29Pvf9dQWrRpK2Go3yWl2rsDzRKg5dcyMxARv9/TNveA1ZGI CjhQ== X-Received: by 10.66.234.131 with SMTP id ue3mr3103161pac.35.1378299115604; Wed, 04 Sep 2013 05:51:55 -0700 (PDT) Received: from arty (48.178.30.125.dy.iij4u.or.jp. [125.30.178.48]) by mx.google.com with ESMTPSA id zi1sm28657995pbb.28.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Sep 2013 05:51:54 -0700 (PDT) Date: Wed, 4 Sep 2013 21:51:52 +0900 From: Chie Taguchi To: Tim Kientzle Subject: Re: building document of Xorg Message-Id: <20130904215152.13dbc6edba2cef363779a3e9@gmail.com> In-Reply-To: <3D90F8CB-14A3-4E9F-AE5A-E970E76AEA5F@gmail.com> References: <20130818101242.b3801b1b97dbe42cb905653c@gmail.com> <0D701E6E-8DE0-45DE-854B-133FCCC35C79@iaelu.net> <20130818212508.beddbf0e04a2f5f9a3a699a1@gmail.com> <20130819220401.11acd306a94e60a87d6424c9@gmail.com> <3D90F8CB-14A3-4E9F-AE5A-E970E76AEA5F@gmail.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU" Cc: Guillaume Bibaut , freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2013 12:51:56 -0000 This is a multi-part message in MIME format. --Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit i make another patch for libgcrypt, fix inline assembler error at clang. it seems a little faster than gcc.:) i will send PR this patch. thanks. C.Taguchi --Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU Content-Type: text/plain; name="patch-libgcrypt.txt" Content-Disposition: attachment; filename="patch-libgcrypt.txt" Content-Transfer-Encoding: 7bit diff -urN libgcrypt.orig/Makefile libgcrypt/Makefile --- libgcrypt.orig/Makefile 2013-09-03 21:38:02.000000000 +0900 +++ libgcrypt/Makefile 2013-09-03 21:39:46.000000000 +0900 @@ -36,9 +36,6 @@ BROKEN= will not compile. See pr ports/166388 .endif -.elif ${ARCH} == "armv6" -USE_GCC=4.2+ - .elif ${ARCH} == "i386" .if (${OSVERSION} < 900033) CONFIGURE_ARGS+= --disable-aesni-support diff -urN libgcrypt.orig/files/patch-mpi-longlong.h libgcrypt/files/patch-mpi-longlong.h --- libgcrypt.orig/files/patch-mpi-longlong.h 2013-09-03 21:35:50.000000000 +0900 +++ libgcrypt/files/patch-mpi-longlong.h 2013-09-03 20:51:48.000000000 +0900 @@ -1,5 +1,42 @@ ---- ./mpi/longlong.h.orig 2010-02-22 19:04:43.000000000 +0900 -+++ ./mpi/longlong.h 2010-11-01 18:25:34.000000000 +0900 +--- ./mpi/longlong.h.orig 2013-09-03 18:52:04.000000000 +0900 ++++ ./mpi/longlong.h 2013-09-03 20:46:40.000000000 +0900 +@@ -188,8 +188,8 @@ + #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ + __asm__ ("adds %1, %4, %5\n" \ + "adc %0, %2, %3" \ +- : "=r" ((USItype)(sh)), \ +- "=&r" ((USItype)(sl)) \ ++ : "=r" (sh), \ ++ "=&r" (sl) \ + : "%r" ((USItype)(ah)), \ + "rI" ((USItype)(bh)), \ + "%r" ((USItype)(al)), \ +@@ -197,8 +197,8 @@ + #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ + __asm__ ("subs %1, %4, %5\n" \ + "sbc %0, %2, %3" \ +- : "=r" ((USItype)(sh)), \ +- "=&r" ((USItype)(sl)) \ ++ : "=r" (sh), \ ++ "=&r" (sl) \ + : "r" ((USItype)(ah)), \ + "rI" ((USItype)(bh)), \ + "r" ((USItype)(al)), \ +@@ -225,10 +225,10 @@ + : "r0", "r1", "r2") + #else + #define umul_ppmm(xh, xl, a, b) \ +- __asm__ ("%@ Inlined umul_ppmm\n" \ +- "umull %r1, %r0, %r2, %r3" \ +- : "=&r" ((USItype)(xh)), \ +- "=r" ((USItype)(xl)) \ ++ __asm__ ("@ Inlined umul_ppmm\n" \ ++ "umull %1, %0, %2, %3" \ ++ : "=&r" (xh), \ ++ "=r" (xl) \ + : "r" ((USItype)(a)), \ + "r" ((USItype)(b)) \ + : "r0", "r1") @@ -437,8 +437,8 @@ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ __asm__ ("addl %5,%1\n" \ --Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU Content-Type: text/plain; name="libgcrypt-benchmark-clang-asm.txt" Content-Disposition: attachment; filename="libgcrypt-benchmark-clang-asm.txt" Content-Transfer-Encoding: 7bit MD5 234375ms 546875ms 3046875ms 468750ms 234375ms SHA1 468750ms 703125ms 3359375ms 703125ms 468750ms RIPEMD160 390625ms 703125ms 3281250ms 703125ms 390625ms TIGER192 703125ms 1171875ms 3828125ms 937500ms 859375ms SHA256 781250ms 1328125ms 4062500ms 1015625ms 859375ms SHA384 1328125ms 2109375ms 4687500ms 1562500ms 1250000ms SHA512 1328125ms 2109375ms 4687500ms 1562500ms 1328125ms SHA224 781250ms 1328125ms 4062500ms 1015625ms 859375ms MD4 78125ms 468750ms 2968750ms 468750ms 234375ms CRC32 156250ms 156250ms 2500000ms 390625ms 156250ms CRC32RFC1510 156250ms 156250ms 2500000ms 390625ms 234375ms CRC24RFC2440 625000ms 546875ms 2890625ms 781250ms 703125ms WHIRLPOOL 5937500ms 6328125ms 9453125ms 6250000ms 6093750ms TIGER 781250ms 1093750ms 3828125ms 1015625ms 781250ms TIGER2 781250ms 1093750ms 3828125ms 1015625ms 859375ms ECB/Stream CBC CFB OFB CTR --------------- --------------- --------------- --------------- --------------- IDEA 2109375ms 2187500ms 2421875ms 2500000ms 2265625ms 2265625ms 2343750ms 2343750ms 4062500ms 3984375ms 3DES 5000000ms 5000000ms 5312500ms 5390625ms 5156250ms 5156250ms 5234375ms 5156250ms 6953125ms 6953125ms CAST5 1562500ms 1562500ms 1796875ms 2031250ms 1640625ms 1718750ms 1875000ms 1718750ms 3437500ms 3515625ms BLOWFISH 1718750ms 1718750ms 2031250ms 2109375ms 1875000ms 1875000ms 2031250ms 1953125ms 3671875ms 3671875ms AES 1406250ms 1328125ms 1250000ms 1250000ms 1250000ms 1250000ms 1640625ms 1562500ms 1250000ms 1250000ms AES192 1640625ms 1484375ms 1562500ms 1406250ms 1406250ms 1484375ms 1796875ms 1796875ms 1484375ms 1406250ms AES256 1796875ms 1640625ms 1718750ms 1640625ms 1562500ms 1640625ms 2031250ms 2031250ms 1640625ms 1640625ms TWOFISH 1328125ms 1328125ms 1562500ms 1562500ms 1484375ms 1484375ms 1562500ms 1562500ms 3125000ms 3046875ms ARCFOUR 390625ms 468750ms DES 2265625ms 2187500ms 2578125ms 2578125ms 2421875ms 2421875ms 2500000ms 2421875ms 4140625ms 4140625ms TWOFISH128 1406250ms 1328125ms 1562500ms 1640625ms 1484375ms 1484375ms 1562500ms 1562500ms 3125000ms 3046875ms SERPENT128 1718750ms 1562500ms 1875000ms 1875000ms 1718750ms 1796875ms 1875000ms 1796875ms 3437500ms 3437500ms SERPENT192 1562500ms 1562500ms 1875000ms 1875000ms 1796875ms 1796875ms 1875000ms 1875000ms 3437500ms 3437500ms SERPENT256 1640625ms 1562500ms 1875000ms 1875000ms 1796875ms 1796875ms 1875000ms 1875000ms 3437500ms 3437500ms RFC2268_40 1718750ms 2187500ms 2031250ms 2500000ms 1875000ms 1796875ms 2031250ms 1875000ms 3593750ms 3593750ms SEED 1328125ms 1406250ms 1562500ms 1718750ms 1484375ms 1484375ms 1562500ms 1406250ms 3203125ms 3125000ms CAMELLIA128 2734375ms 2812500ms 3046875ms 3203125ms 2812500ms 2968750ms 2968750ms 2968750ms 4531250ms 4687500ms CAMELLIA192 3046875ms 3125000ms 3281250ms 3359375ms 3203125ms 3203125ms 3203125ms 3203125ms 4843750ms 4843750ms CAMELLIA256 3046875ms 3125000ms 3281250ms 3359375ms 3203125ms 3125000ms 3203125ms 3203125ms 4843750ms 4843750ms Algorithm generate 100*sign 100*verify ------------------------------------------------ RSA 1024 bit 7421875ms 77968750ms 2343750ms RSA 2048 bit 29296875ms 426250000ms 5781250ms RSA 3072 bit 949531250ms 1191640625ms 10781250ms RSA 4096 bit 926093750ms 2526015625ms 17343750ms DSA 1024/160 - 38203125ms 40546875ms DSA 2048/224 - 143593750ms 139453125ms DSA 3072/256 - 314218750ms 283593750ms ECDSA 192 bit 3671875ms 95000000ms 171718750ms ECDSA 224 bit 4296875ms 112187500ms 205546875ms ECDSA 256 bit 5234375ms 132109375ms 246718750ms ECDSA 384 bit 10625000ms 262343750ms 488046875ms ECDSA 521 bit 24062500ms 612812500ms 1183984375ms powm 2968750ms 7890625ms 21484375ms random 468750ms 312500ms --Multipart=_Wed__4_Sep_2013_21_51_52_+0900_kNe/DZIFXrepPVZU--