efriedma-quic wrote:
An example that might be helpful (using x86 asm):
```
int shift(int x, char amt) {
asm("shll %0, %1" : "+r"(x) : "{cl}i"(amt));
return x;
}
int a(int x) {
return shift(x, 1);
}
```
Here, you want one of two choices: either an immediate, or the register "cl".
I can't think of any cases where you'd want to specify both a specific register
and a generic register class, though.
https://github.com/llvm/llvm-project/pull/85846
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits