[clang] [llvm] [Clang][inlineasm] Add special support for "rm" output constraints (PR #92040)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 4 08:14:29 PST 2026
================
@@ -0,0 +1,258 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --filter "^\t#" --version 4
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu -O2 -regalloc=greedy < %s | FileCheck --check-prefix=GREEDY-X86_64 %s
+; RUN: llc -mtriple=i386-unknown-linux-gnu -O2 -regalloc=greedy < %s | FileCheck --check-prefix=GREEDY-I386 %s
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu -O2 -regalloc=basic < %s | FileCheck --check-prefix=BASIC-X86_64 %s
+; RUN: llc -mtriple=i386-unknown-linux-gnu -O2 -regalloc=basic < %s | FileCheck --check-prefix=BASIC-I386 %s
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu -O0 -regalloc=fast < %s | FileCheck --check-prefix=FAST-X86_64 %s
+; RUN: llc -mtriple=i386-unknown-linux-gnu -O0 -regalloc=fast < %s | FileCheck --check-prefix=FAST-I386 %s
+
+; The non-fast register allocators should use registers when there isn't
+; register pressure.
+
+define dso_local i32 @test1(ptr nocapture noundef readonly %ptr) local_unnamed_addr {
+; GREEDY-X86_64-LABEL: test1:
+;
+; GREEDY-I386-LABEL: test1:
+;
+; BASIC-X86_64-LABEL: test1:
+;
+; BASIC-I386-LABEL: test1:
+;
+; FAST-X86_64-LABEL: test1:
+;
+; FAST-I386-LABEL: test1:
----------------
nikic wrote:
Actual check lines are missing?
https://github.com/llvm/llvm-project/pull/92040
More information about the llvm-commits
mailing list