Date: Tue, 14 Apr 2015 19:46:20 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 199450] clang 3.6 crash building lang/spidermonkey Message-ID: <bug-199450-7-kKUWOam8hP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-199450-7@https.bugs.freebsd.org/bugzilla/> References: <bug-199450-7@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199450 --- Comment #4 from Dimitry Andric <dim@FreeBSD.org> --- 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199450-7-kKUWOam8hP>