[clang] [X86][CFE] Support EGPR in inline assembly. (PR #91323)

Shengchen Kan via cfe-commits cfe-commits at lists.llvm.org
Tue May 7 19:42:56 PDT 2024


================
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -o /dev/null
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -target-feature +egpr %s -o /dev/null
+
+int foo(void) {
+  register int a __asm__("ebx");
+#ifdef __EGPR__
----------------
KanRobert wrote:

We have

./clang/test/CodeGen/M68k/inline-asm-gcc-regs.c
./clang/test/CodeGen/LoongArch/inline-asm-gcc-regs.c


I suggest splitting ./clang/test/CodeGen/2004-03-16-AsmRegisterCrash.c into 

```
./clang/test/CodeGen/ARM/inline-asm-gcc-regs.c
./clang/test/CodeGen/X86/inline-asm-gcc-regs.c
```
and add your test into the second one.

https://github.com/llvm/llvm-project/pull/91323


More information about the cfe-commits mailing list