Add a test for tracking PR41027 (8.0 regression breaking assembly code
relying on __builtin_constant_p() to identify compile-time constants).
Mark it as expected to fail everywhere.
Details
Diff Detail
Event Timeline
What's the value in checking in this xfail'ed test without an actual fix for the problem?
- It may help whoever tries to address it in the future, to have a known-good reproducer.
- If someone addresses this independently and doesn't notice the bug, it will help us get informed that the issue was fixed.
I don't think that works. No one is reading through the test files of the repository.
The usual way to do this is to post it on the bug tracker, which was already done.
- If someone addresses this independently and doesn't notice the bug, it will help us get informed that the issue was fixed.
Fair enough, that seems somewhat useful :-)
clang/test/Sema/pr41027.c | ||
---|---|---|
1 | nit: the XFAIL usually comes after the RUN line, and there's usually an empty line between these lines and the other contents of the file |
Well, I think we should treat it from the other side around.
Could we please revert it and backport revert to 8.0.1? The author(s) can improve the implementation and get this pr41027 test to check if a new version works.
Right now this blocks upgrades on NetBSD as a number of CPUs is affected (but not x86, so it was overlooked before 8.0 by others than @joerg).
nit: the XFAIL usually comes after the RUN line, and there's usually an empty line between these lines and the other contents of the file