public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/30130] New: [s390] The _FPU_SETCW macro yields compile error with Clang
@ 2023-02-16 16:26 arnez at linux dot ibm.com
  2023-02-16 16:28 ` [Bug math/30130] " arnez at linux dot ibm.com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: arnez at linux dot ibm.com @ 2023-02-16 16:26 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30130

            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 <fpu_control.h>
    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 which is
accepted by the GNU assembler, but not by Clang/LLVM.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-28 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 16:26 [Bug math/30130] New: [s390] The _FPU_SETCW macro yields compile error with Clang arnez at linux dot ibm.com
2023-02-16 16:28 ` [Bug math/30130] " arnez at linux dot ibm.com
2023-02-16 16:38 ` arnez at linux dot ibm.com
2023-02-28 12:21 ` stli at linux dot ibm.com
2023-02-28 13:05 ` stli at linux dot ibm.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).