From owner-freebsd-arm@FreeBSD.ORG Tue Apr 14 19:46:20 2015 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7EE7C8B3 for ; Tue, 14 Apr 2015 19:46:20 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 653E36BF for ; Tue, 14 Apr 2015 19:46:20 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t3EJkKie082792 for ; Tue, 14 Apr 2015 19:46:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 199450] clang 3.6 crash building lang/spidermonkey Date: Tue, 14 Apr 2015 19:46:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2015 19:46:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199450 --- Comment #4 from Dimitry Andric --- Reduced to just a bit of inline asm: $ cat toint32.c // clang -cc1 -triple armv6--freebsd11.0-gnueabihf -emit-obj toint32.c int ToInt32(double d) { int i; unsigned tmp0; unsigned tmp1; unsigned tmp2; asm ( " mov %1, %R4, LSR #20\n" " bic %1, %1, #(1 << 11)\n" " orr %R4, %R4, #(1 << 20)\n" " sub %1, %1, #0xff\n" " subs %1, %1, #0x300\n" " bmi 8f\n" " subs %3, %1, #52\n" " bmi 1f\n" " bic %2, %3, #0xff\n" " orr %3, %3, %2, LSR #3\n" " mov %Q4, %Q4, LSL %3\n" " b 2f\n" "1:\n" " rsb %3, %1, #52\n" " mov %Q4, %Q4, LSR %3\n" "2:\n" " subs %3, %1, #31\n" " mov %1, %R4, LSL #11\n" " bmi 3f\n" " bic %2, %3, #0xff\n" " orr %3, %3, %2, LSR #3\n" " mov %2, %1, LSL %3\n" " b 4f\n" "3:\n" " rsb %3, %3, #0\n" " mov %2, %1, LSR %3\n" "4:\n" " orr %Q4, %Q4, %2\n" " eor %Q4, %Q4, %R4, ASR #31\n" " add %0, %Q4, %R4, LSR #31\n" " b 9f\n" "8:\n" " mov %0, #0\n" "9:\n" : "=r" (i), "=&r" (tmp0), "=&r" (tmp1), "=&r" (tmp2), "=&r" (d) : "4" (d) : "cc" ); return i; } -- You are receiving this mail because: You are the assignee for the bug.