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

Freddy Ye via cfe-commits cfe-commits at lists.llvm.org
Tue May 7 22:19:51 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__
----------------
FreddyLeaf wrote:

> bash$ ls -d llvm/test/CodeGen/*/
> 
> llvm/test/CodeGen/ARM/ llvm/test/CodeGen/AArch64/
> 
> ARM use a separate dir from AArch64. So create clang/test/CodeGen/ARM/ and put test in it.

There's no even AArch64 under clang/test/CodeGen/. ARM's clang codegen lit tests are not organized well if you look into clang/test/CodeGen/. It'd better not create a location if it won't be used in the future.


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


More information about the cfe-commits mailing list