[PATCH] D142834: [X86][MC][bugfix] Report error for mismatched modifier in inline asm and remove function getX86SubSuperRegisterOrZero
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 30 20:52:59 PST 2023
skan 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:
> craig.topper wrote:
> > Is it not possible to do this with `__int128` in C?
> ```
> void foo() {
> __int128 a;
> asm volatile ("" : "+a"(a));
> }
> ```
> ```
> void foo() {
> __int128 a;
> asm volatile ("" : "+a"(a));
> }
> ```
Good example!
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