-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builtins-sparc-sunos:: divtc3_test.c XPASSes on Solaris/sparc #72398
Comments
Thanks for the detailed analysis. It sounds like the right way forward is to drop the XFAIL for now and to fix the librt_has_* checks. I agree that the tests need improving... |
…r now As detailed in Issue llvm#72398, the recent builtins rework and 77d75dc caused `Builtins-sparc-sunos:: divtc3_test.c` to `XPASS` on 32-bit Solaris/SPARC. Since there are several underlying issues, un-XFAIL the test for now until those are resolved, to turn the Solaris/sparcv9 buildbot green again after 5 days.
#72403) As detailed in Issue #72398, the recent builtins rework and 77d75dc caused `Builtins-sparc-sunos:: divtc3_test.c` to `XPASS` on 32-bit Solaris/SPARC. Since there are several underlying issues, un-`XFAIL` the test for now until those are resolved, to turn the Solaris/sparcv9 buildbot green again after 5 days. Tested on `sparcv9-sun-solaris2.11` and `x86_64-pc-linux-gnu`.
llvm#72403) As detailed in Issue llvm#72398, the recent builtins rework and 77d75dc caused `Builtins-sparc-sunos:: divtc3_test.c` to `XPASS` on 32-bit Solaris/SPARC. Since there are several underlying issues, un-`XFAIL` the test for now until those are resolved, to turn the Solaris/sparcv9 buildbot green again after 5 days. Tested on `sparcv9-sun-solaris2.11` and `x86_64-pc-linux-gnu`.
This can be closed now? |
Good question: I just ran a
However, when I run them manually, I get
Doing nothing and just printing |
As originally reported in [builtins] Guard the divtc3_test.c test with CRT_HAS_TF_MODE, that patch 77d75dc caused
Builtins-sparc-sunos:: divtc3_test.c
toXPASS
on Solaris/sparc, breaking the Solaris/sparcv9 buildbot.Some investigation into the failure that prompted the culprit patch have been reported in Issue #71971.
The same issues apply to 32-bit SPARC, with an additional compliction:
XFAIL
s: it does compile, but died withSIGBUS
at runtime, as originally reported in Bug 42493/Issue Passing long double args on 32-bit SPARC violates ABI #41838. The 32-bitdivtc3.c.o
contains a definition of__divtc3
main
, the test nowXPASS
es. Before the culprit patch, the test would fail to compile (missing definitions ofQcomplex
andtf_float
), which was hidden by theXFAIL
. After the culprit patch, compilation wasn't attempted, resulting in aXPASS
. Unlike LLVM 17,divtc3.c.o
now contains no symbols (i.e. no definition of__divtc3
).Both in LLVM 17 and
main
,librt_has_divtc3
, is alwaystrue
, which seems totallly wrong if the symbol is missing fromlibclang_rt.builtins-sparc.a
.It doesn't help either (though not an issue for the Solaris/sparcv9 buildbot) that the builtins tests aren't run in a runtimes build at all, missing any possible issues.
I guess for the moment the best way forward is to remove/disable the
XFAIL
in the test to turn the Solaris/sparcv9 green again after 5 days, with a prominent comment referring to this Issue. However, there are way more issues in the builtins code that need to be adressed.The text was updated successfully, but these errors were encountered: