[clang] [llvm] [X86] Support EGPR for inline assembly. (PR #92338)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 10:05:40 PDT 2024
================
@@ -0,0 +1,19 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: not llc -mtriple=x86_64 %s 2>&1 | FileCheck %s --check-prefix=ERR
+; RUN: llc -mtriple=x86_64 -mattr=+egpr < %s | FileCheck %s --check-prefix=EGPR
+; RUN: llc -mtriple=x86_64 -mattr=+egpr,+inline-asm-use-gpr32 < %s | FileCheck %s --check-prefix=EGPRUSEGPR32
+
+; ERR: error: inline assembly requires more registers than available
+
+define void @constraint_jR_test() nounwind "frame-pointer"="all" {
+; EGPR-LABEL: constraint_jR_test:
+; EGPR: addq %r16, %rax
+;
+; EGPRUSEGPR32-LABEL: constraint_jR_test:
+; EGPRUSEGPR32: addq %r16, %rax
----------------
nickdesaulniers wrote:
These 2 are the same; consider using the same check prefix. You can omit `--check-prefix` and just use `CHECK:` here.
https://github.com/llvm/llvm-project/pull/92338
More information about the llvm-commits
mailing list