Skip to contentSkip to conversation

state of uClibc ARC soft-float support

DISCUSSION Vineet Gupta 3 participants 4 messages Jun 6, 2019 – Jun 24, 2019 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

Hi Waldemar,

After test-suite commit 9f079b6353 "(disable complex math)" the math tests build and I see lot of failures (for the default soft float builds)

.... test-float-finiteFAIL test-float-finite got 1 expected 0 .... test-floatFAIL test-float got 1 expected 0 .... test-idoubleFAIL test-idouble got 1 expected 0 .... test-ifloatFAIL test-ifloat got 1 expected 0 .... test-matherrFAIL test-matherr got 1 expected 0 .... test-nan-overflowFAIL test-nan-overflow got 1 expected 0 .... test-nan-payloadFAIL test-nan-payload got 1 expected 0

Interestingly in ARC glibc port, soft float builds, all flaot tests pass (so atleast gcc/libgcc foo seem to be fine I think).

I noticed a few things:

1. ulps for ARC was removed from test-sute last year - so I copied over the version from ARC glibc port [1]

2. I suppose these don't depend on UCLIBC_HAS_FENV. Anyhow It seems uClibc __UCLIBC_HAS_FENV__ implies hardware float as it expects all FE_* exceptions/rounding modes to be defined in ARCH specific file.

Anyhow I tried creating an ARC specific fenv to support soft float with no exceptions and only single rounding mode but that doesn't seem to help. Any idea what I'm missing or if it is worth pursuing at all.

Thx,
-Vineet

[1] http://lists.infradead.org/pipermail/linux-snps-arc/2019-January/005347.html

#1 lore raw

Hi Vineet,

I tried to sync the libm tests from glibc to uClibc-ng, but I think I broke it. May be we should revert the commit? 3384c45e66ddf18f235654b67ae34ac7dcb07534

best regards
Waldemar

Vineet Gupta wrote,

Quoted 40 lines

Hi Waldemar,

After test-suite commit 9f079b6353 "(disable complex math)" the math tests build and I see lot of failures (for the default soft float builds)

.... test-float-finiteFAIL test-float-finite got 1 expected 0 .... test-floatFAIL test-float got 1 expected 0 .... test-idoubleFAIL test-idouble got 1 expected 0 .... test-ifloatFAIL test-ifloat got 1 expected 0 .... test-matherrFAIL test-matherr got 1 expected 0 .... test-nan-overflowFAIL test-nan-overflow got 1 expected 0 .... test-nan-payloadFAIL test-nan-payload got 1 expected 0

Interestingly in ARC glibc port, soft float builds, all flaot tests pass (so atleast gcc/libgcc foo seem to be fine I think).

I noticed a few things:

1. ulps for ARC was removed from test-sute last year - so I copied over the version from ARC glibc port [1]

2. I suppose these don't depend on UCLIBC_HAS_FENV. Anyhow It seems uClibc __UCLIBC_HAS_FENV__ implies hardware float as it expects all FE_* exceptions/rounding modes to be defined in ARCH specific file.

Anyhow I tried creating an ARC specific fenv to support soft float with no exceptions and only single rounding mode but that doesn't seem to help. Any idea what I'm missing or if it is worth pursuing at all.

Thx,
-Vineet

[1] http://lists.infradead.org/pipermail/linux-snps-arc/2019-January/005347.html

_______________________________________________
devel mailing list
devel at uclibc-ng.org
https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel

#2 lore raw

Hi Waldemar,

Quoted 8 lines

-----Original Message-----
From: Waldemar Brodkorb <wbx at uclibc-ng.org>
Sent: Friday, June 21, 2019 1:26 PM
To: Vineet Gupta <Vineet.Gupta1 at synopsys.com>
Cc: devel at uclibc-ng.org; arcml <linux-snps-arc at lists.infradead.org>; Alexey Brodkin <abrodkin at synopsys.com>
Subject: Re: [uclibc-ng-devel] state of uClibc ARC soft-float support

Quoted 5 lines

Hi Vineet,

I tried to sync the libm tests from glibc to uClibc-ng, but I think I broke it. May be we should revert the commit? 3384c45e66ddf18f235654b67ae34ac7dcb07534

There seems to be no commit with such hash:
https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=3384c45e66ddf18f235654b67ae34ac7dcb07534

Did you mean something else?

-Alexey

#3 lore raw

Hi Alexey,
Alexey Brodkin wrote,

Quoted 12 lines

Hi Waldemar,

Quoted 10 lines

-----Original Message-----
From: Waldemar Brodkorb <wbx at uclibc-ng.org>
Sent: Friday, June 21, 2019 1:26 PM
To: Vineet Gupta <Vineet.Gupta1 at synopsys.com>
Cc: devel at uclibc-ng.org; arcml <linux-snps-arc at lists.infradead.org>; Alexey Brodkin <abrodkin at synopsys.com>
Subject: Re: [uclibc-ng-devel] state of uClibc ARC soft-float support

Hi Vineet,

Quoted 8 lines
Quoted 3 lines

I tried to sync the libm tests from glibc to uClibc-ng, but I think I broke it. May be we should revert the commit? 3384c45e66ddf18f235654b67ae34ac7dcb07534

There seems to be no commit with such hash:
https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=3384c45e66ddf18f235654b67ae34ac7dcb07534

Did you mean something else?

This one:

https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git/commit/?id=3384c45e66ddf18f235654b67ae34ac7dcb07534

best regards
Waldemar