[PATCH] D142834: [X86][MC][bugfix] Report error for mismatched modifier in inline asm and remove function getX86SubSuperRegisterOrZero

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 20:01:40 PST 2023


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/X86/asm-reject-reg-type-mismatch.ll:4
 
-; CHECK: error: couldn't allocate output register for constraint '{ax}'
-define i128 @blup() {
----------------
craig.topper wrote:
> Is it not possible to do this with `__int128` in C?
```
void foo() {
    __int128 a;
    asm volatile ("" : "+a"(a));
}
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142834/new/

https://reviews.llvm.org/D142834



More information about the llvm-commits mailing list