[clang] [llvm] [inlineasm] Add special support for "rm" inline asm constraints (PR #181973)

Antonio Frighetto via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 25 07:39:45 PST 2026


================
@@ -6,16 +6,13 @@
 define i32 @foo(i32 %treemap) nounwind {
 ; CHECK-LABEL: foo:
 ; CHECK:       # %bb.0: # %entry
-; CHECK-NEXT:    pushl %eax
 ; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax
 ; CHECK-NEXT:    movl %eax, %ecx
 ; CHECK-NEXT:    negl %ecx
 ; CHECK-NEXT:    andl %eax, %ecx
-; CHECK-NEXT:    movl %ecx, (%esp)
 ; CHECK-NEXT:    #APP
-; CHECK-NEXT:    bsfl (%esp), %eax
+; CHECK-NEXT:    bsfl %ecx, %eax
----------------
antoniofrighetto wrote:

Nice!

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


More information about the cfe-commits mailing list