[Bug inline-asm/90181] Feature request: provide a way to explicitly select specific named registers in constraints

2019-04-23 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90181 --- Comment #7 from Segher Boessenkool --- (In reply to nfxjfg from comment #6) > Yes, it's clear that that the constraint can't be _just_ the register name, > since they'll clash with builtin constraints now or with future > architectures

[Bug inline-asm/90181] Feature request: provide a way to explicitly select specific named registers in constraints

2019-04-22 Thread nfxjfg at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90181 --- Comment #6 from nfxjfg at googlemail dot com --- Yes, it's clear that that the constraint can't be _just_ the register name, since they'll clash with builtin constraints now or with future architectures (which may add arbitrary register

[Bug inline-asm/90181] Feature request: provide a way to explicitly select specific named registers in constraints

2019-04-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90181 --- Comment #5 from Andrew Pinski --- Actually it is not as bad if you use preprocessor tricks. Like this code from glibc for aarch64: # undef INTERNAL_SYSCALL_RAW # define INTERNAL_SYSCALL_RAW(name, err, nr, args...) \ ({ long

[Bug inline-asm/90181] Feature request: provide a way to explicitly select specific named registers in constraints

2019-04-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90181 Segher Boessenkool changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug inline-asm/90181] Feature request: provide a way to explicitly select specific named registers in constraints

2019-04-19 Thread nfxjfg at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90181 --- Comment #3 from nfxjfg at googlemail dot com --- Yes, it's documented this way, but it makes it appear all kinds of fragile. For one, I normally expect that the compiler will reorder and interleave any statements in my code (because that's

[Bug inline-asm/90181] Feature request: provide a way to explicitly select specific named registers in constraints

2019-04-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90181 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug inline-asm/90181] Feature request: provide a way to explicitly select specific named registers in constraints

2019-04-19 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90181 --- Comment #1 from Andreas Schwab --- x86 doesn't support this either. It just happens to have a few register classes that consist of a single register, but only because of ISA constraints.