Messages in this thread | | | Date | Fri, 1 May 2015 09:45:35 -0700 | Subject | Re: [PATCH] x86: Optimize variable_test_bit() | From | Linus Torvalds <> |
| |
On Fri, May 1, 2015 at 9:33 AM, Jakub Jelinek <jakub@redhat.com> wrote: > > CCing Richard as author of asm goto and Vlad as register allocator > maintainer. There are a few enhancement requests to support this, like > http://gcc.gnu.org/PR59615 and http://gcc.gnu.org/PR52381 , but indeed the > reason why no outputs are allowed is the register allocation issue.
So would it help if it was documented that output registers would only be valid for the "fallthrough" case of an asm goto, and would be considered undefined for any jump targets?
It wouldn't be the perfect situation, but it would be better than not having any outputs at all, and as mentioned, it would probably be sufficient for a fair number of cases.
Linus
| |