From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61A1F3858D33; Thu, 16 Feb 2023 16:26:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61A1F3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676564774; bh=WY0KVwU93lXyPM5k26AwSjUtUZelLba2IoKQ+IAiKW0=; h=From:To:Subject:Date:From; b=vgGlkpKdp6UA2RvhqCdWx2NogxTD8Nms4IAZYwSwX+FWCAKKNYeTvFTv87bAwWFvG VyQvBdVtgfUbvBOWgBDuW3iXcS7J4LUOSSpH8AbDLwKFjXmp6AFR9UqTz6N/f7nMvW 0Cd4MxTjzHaZFJ7AcDJ7W9dmNrEpqsp0V93IAoj0= From: "arnez at linux dot ibm.com" To: glibc-bugs@sourceware.org Subject: [Bug math/30130] New: [s390] The _FPU_SETCW macro yields compile error with Clang Date: Thu, 16 Feb 2023 16:26:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arnez at linux dot ibm.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30130 Bug ID: 30130 Summary: [s390] The _FPU_SETCW macro yields compile error with Clang Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: math Assignee: unassigned at sourceware dot org Reporter: arnez at linux dot ibm.com Target Milestone: --- The _FPU_SETCW and _FPU_GETCW macros don't work with Clang. Compiling this sample program: #include void foo() { _FPU_SETCW(0); } gives foo.c:2:14: error: invalid operand for instruction void foo() { _FPU_SETCW(0); } ^ This is because the inline assembly contains a spurious second operand whic= h is accepted by the GNU assembler, but not by Clang/LLVM. --=20 You are receiving this mail because: You are on the CC list for the bug.=