From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 4F3353858D20; Fri, 28 Oct 2022 17:43:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F3353858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666979032; bh=/22jpd4FZULz+FIJfXeVsAxGipRnJOFPQnwA6TGbbsk=; h=From:To:Subject:Date:From; b=HhtTN/klLgpmGNytJW5x6QltcO5ClX0B3HjwHOVvVU5IyImUD//ueu7LaL2LvRqdv a7Jm93zBjSzh5xgVbvQKCmr0zSAT6PkMBvy37QaKHv+9wVX6Gu5g33wrv6LkJ2W2Dm kqNI/Boc884IAUZTmgr1JoVPwsQguGYpg/jxC1Yw= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] math: Fix test-totalorderl-ldbl-96 exponent setting X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 81a1b4bebaa599b09a6d5c78b451d3fe290988dc X-Git-Newrev: 80e44cb1253a365a3d96bbd057cb27b578856ddb Message-Id: <20221028174352.4F3353858D20@sourceware.org> Date: Fri, 28 Oct 2022 17:43:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=80e44cb1253a365a3d96bbd057cb27b578856ddb commit 80e44cb1253a365a3d96bbd057cb27b578856ddb Author: Adhemerval Zanella Date: Thu Mar 24 15:14:35 2022 -0300 math: Fix test-totalorderl-ldbl-96 exponent setting Clang issues the following warning: ../sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c:49:2: error: implicit truncation from 'int' to bit-field changes value from 65535 to -1 [-Werror,-Wbitfield-constant-conversion] SET_LDOUBLE_WORDS (ldnx, 0xffff, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../sysdeps/x86_64/fpu/math_ldbl.h:56:28: note: expanded from macro 'SET_LDOUBLE_WORDS' iw_u.parts.sign_exponent = (exp); \ ^ ~~~~~ ../sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c:51:2: error: implicit truncation from 'int' to bit-field changes value from 65535 to -1 [-Werror,-Wbitfield-constant-conversion] SET_LDOUBLE_WORDS (ldny, 0xffff, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../sysdeps/x86_64/fpu/math_ldbl.h:56:28: note: expanded from macro 'SET_LDOUBLE_WORDS' iw_u.parts.sign_exponent = (exp); \ ^ ~~~~~ Diff: --- sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c b/sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c index 1928db672f..86f45d8269 100644 --- a/sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c +++ b/sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c @@ -46,9 +46,9 @@ do_test (void) SET_LDOUBLE_WORDS (ldy, 0x7fff, (tests[i] >> 32) | 0x80000000, tests[i] & 0xffffffffULL); - SET_LDOUBLE_WORDS (ldnx, 0xffff, + SET_LDOUBLE_WORDS (ldnx, -1, tests[i] >> 32, tests[i] & 0xffffffffULL); - SET_LDOUBLE_WORDS (ldny, 0xffff, + SET_LDOUBLE_WORDS (ldny, -1, (tests[i] >> 32) | 0x80000000, tests[i] & 0xffffffffULL); bool to1 = totalorderl (&ldx, &ldy);