mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Considering x86-64 fenv.s to C
@ 2020-01-16  4:30 Damian McGuckin
  2020-01-16 15:11 ` Markus Wichmann
  2020-01-16 16:14 ` Rich Felker
  0 siblings, 2 replies; 63+ messages in thread
From: Damian McGuckin @ 2020-01-16  4:30 UTC (permalink / raw)
  To: musl


I was just looking at fenv.s in x86-64 with a view to doing this as C-code 
with some __asm__. I have limited experience with playing with this stuff 
in an SSE-only environment, i.e. no 80-bit floats.  Before I attempt 
anything, I need to expand my knowledge.

My observations on

 	musl-1.1.24/src/fenv/x86_64/fenv.s

* feclearexcept

 	considers both the X87 status word and the SSE MXCSR

* feraiseexcept

 	ignores the X87 status word and considers only the SSE MXCSR

* fetesteexcept

 	considers both the X87 status word and the SSE MXCSR

* fesetround

 	considers both the X87 control word and the SSE MXCSR

* fegetround

 	ignores the X87 control word and considers only the SSE MXCSR

Why is the X87 component of the FPU control/status sometimes ignored and 
sometimes not?

Does the X87 control or status bits automatically flow through to the
equivalent stuff in the SSE or vica-versa?

I assume that 'fwait' is irrelevant and unnecessary, even if one is using 
the x87 FPU?

Regards - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer

^ permalink raw reply	[flat|nested] 63+ messages in thread
* [musl] PPC64(LE) support in musl requires ALTIVEC
@ 2020-02-03 14:16 Romain Naour
  2020-02-03 14:50 ` Rich Felker
  0 siblings, 1 reply; 63+ messages in thread
From: Romain Naour @ 2020-02-03 14:16 UTC (permalink / raw)
  To: musl; +Cc: Vincent Fazio

Hi,

We noticed that musl toolchain doesn't work on PPC64 e5500 cpus due to
Altived instructions in src/setjmp/powerpc64/setjmp.s [1].

A patch has been sent by Vincent Fazio to the Buildroot mailing list to disable
musl for such cpus [2].

Maybe the supported-platforms list could be updated [3].

[1] https://git.musl-libc.org/cgit/musl/tree/src/setjmp/powerpc64/setjmp.s#n74
[2] http://patchwork.ozlabs.org/patch/1231986/
[3] https://wiki.musl-libc.org/supported-platforms.html

Best regards,
Romain

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

end of thread, other threads:[~2020-02-23  8:35 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16  4:30 [musl] Considering x86-64 fenv.s to C Damian McGuckin
2020-01-16 15:11 ` Markus Wichmann
2020-01-16 16:14 ` Rich Felker
2020-01-16 18:56   ` Damian McGuckin
2020-01-16 19:33     ` Rich Felker
2020-01-16 21:31       ` Damian McGuckin
2020-01-17  3:36       ` Damian McGuckin
2020-01-17  3:48         ` Damian McGuckin
2020-01-17  3:53         ` David Edelsohn
2020-01-17 14:13           ` Rich Felker
2020-01-17 14:19             ` David Edelsohn
2020-01-17 14:53         ` Rich Felker
2020-01-18  4:45           ` Damian McGuckin
2020-01-18  5:29             ` Rich Felker
2020-01-19  8:50               ` Damian McGuckin
2020-01-19  9:07           ` Damian McGuckin
2020-01-19 10:42             ` Szabolcs Nagy
2020-01-19 12:25               ` Damian McGuckin
2020-01-20  5:32           ` Damian McGuckin
2020-01-20 17:38             ` Rich Felker
2020-01-20 21:11               ` [musl] Triggering Overflow (or Underflow) without triggering Inexact on i386 Damian McGuckin
2020-01-20 22:32                 ` Szabolcs Nagy
2020-01-21  3:53           ` [musl] Considering x86-64 fenv.s to C Damian McGuckin
2020-01-21  4:22             ` Rich Felker
2020-01-21  4:46               ` Damian McGuckin
2020-01-21  7:26                 ` Damian McGuckin
2020-01-17 16:41         ` Markus Wichmann
2020-01-18  1:15           ` Szabolcs Nagy
2020-01-18  5:03             ` Damian McGuckin
2020-01-18  5:37               ` Rich Felker
2020-01-18  9:40                 ` Szabolcs Nagy
2020-01-24  0:42                   ` Damian McGuckin
2020-01-24  1:11                     ` Rich Felker
2020-01-24  4:13                       ` Damian McGuckin
2020-01-24  4:55                         ` Rich Felker
2020-01-24  6:08                           ` Damian McGuckin
2020-01-24 13:44                             ` Rich Felker
2020-01-24 14:45                               ` Damian McGuckin
2020-01-24 23:59                               ` Damian McGuckin
2020-01-25  0:11                                 ` Rich Felker
2020-01-26  3:28                                   ` Damian McGuckin
2020-01-26  3:28                                   ` Damian McGuckin
2020-01-26  3:30                                   ` Damian McGuckin
2020-01-26  3:32                                   ` Damian McGuckin
2020-01-26  5:25                                   ` Damian McGuckin
2020-01-27  3:32                                   ` Damian McGuckin
2020-01-27  5:39                                   ` Damian McGuckin
2020-02-02  0:47                                   ` Damian McGuckin
2020-02-03  0:54                                   ` Damian McGuckin
2020-02-03  2:09                                     ` Rich Felker
2020-02-03  2:12                                       ` Damian McGuckin
2020-02-22 20:17                                         ` Rich Felker
2020-02-22 20:53                                           ` Damian McGuckin
2020-02-23  5:41                                           ` Damian McGuckin
2020-02-23  6:25                                             ` Rich Felker
2020-02-23  8:35                                               ` Damian McGuckin
2020-02-07 21:25                                   ` Damian McGuckin
2020-02-07 21:38                                     ` Rich Felker
2020-02-07 23:53                                       ` Damian McGuckin
2020-02-09  5:04                                       ` Damian McGuckin
2020-01-24  7:10                           ` Damian McGuckin
2020-01-18  5:04             ` Markus Wichmann
2020-02-03 14:16 [musl] PPC64(LE) support in musl requires ALTIVEC Romain Naour
2020-02-03 14:50 ` Rich Felker
2020-02-05  1:32   ` [musl] Considering x86-64 fenv.s to C Damian McGuckin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).