From owner-freebsd-toolchain@FreeBSD.ORG Mon Sep 22 01:39:06 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 033E9CC4 for ; Mon, 22 Sep 2014 01:39:06 +0000 (UTC) Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtpout001.mac.com [17.172.220.236]) (using TLSv1 with cipher DES-CBC3-SHA (112/168 bits)) (Client CN "smtp.me.com", Issuer "VeriSign Class 3 Extended Validation SSL SGC CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA8E5390 for ; Mon, 22 Sep 2014 01:39:05 +0000 (UTC) Received: from fukuyama.hsd1.ca.comcast.net (unknown [73.162.13.215]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0NCA00B9S4KORC50@st11p02mm-asmtp001.mac.com> for freebsd-toolchain@freebsd.org; Mon, 22 Sep 2014 01:38:51 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-09-22_01:2014-09-19,2014-09-21,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1409220017 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 8.0 \(1985.3\)) Subject: Re: Is this a compiler bug? From: Rui Paulo In-reply-to: <20140922011946.GA4317@troutmask.apl.washington.edu> Date: Sun, 21 Sep 2014 18:38:48 -0700 Content-transfer-encoding: quoted-printable Message-id: <670269FD-F75F-4044-8F3C-0260F58A70E2@me.com> References: <20140922011946.GA4317@troutmask.apl.washington.edu> To: Steve Kargl X-Mailer: Apple Mail (2.1985.3) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 01:39:06 -0000 On Sep 21, 2014, at 18:19, Steve Kargl = wrote: >=20 > #include > #include >=20 > int > main(void) > { > uint16_t i; > i =3D 0x3ff0+63; printf("%x\n", i); > i =3D 0x3ff1+63; printf("%x\n", i); > i =3D 0x3ff2+63; printf("%x\n", i); > i =3D 0x3ff3+63; printf("%x\n", i); > i =3D 0x3ff4+63; printf("%x\n", i); > i =3D 0x3ff4+63; printf("%x\n", i); > i =3D 0x3ff6+63; printf("%x\n", i); > i =3D 0x3ff7+63; printf("%x\n", i); > i =3D 0x3ff8+63; printf("%x\n", i); > i =3D 0x3ff9+63; printf("%x\n", i); > i =3D 0x3ffa+63; printf("%x\n", i); > i =3D 0x3ffb+63; printf("%x\n", i); > i =3D 0x3ffc+63; printf("%x\n", i); > i =3D 0x3ffd+63; printf("%x\n", i); > i =3D 0x3ffe+63; printf("%x\n", i); > i =3D 0x3fff+63; printf("%x\n", i); > return 0; > } Looks like it. Please file a bug report with LLVM. -- Rui Paulo