[llvm] [CodeGen] Remove ExpandInlineAsm hook (PR #156617)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 3 01:27:43 PDT 2025
================
@@ -25,16 +31,20 @@ define i32 @pen(i32 %x) nounwind {
; CHECK-LABEL: pen:
; CHECK: ## %bb.0:
; CHECK-NEXT: movl %edi, %eax
+; CHECK-NEXT: ## InlineAsm Start
; CHECK-NEXT: bswapl %eax
+; CHECK-NEXT: ## InlineAsm End
; CHECK-NEXT: retq
- %asmtmp = tail call i32 asm "bswapl ${0:q}", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %x) nounwind
+ %asmtmp = tail call i32 asm "bswapl ${0:k}", "=r,0,~{dirflag},~{fpsr},~{flags}"(i32 %x) nounwind
----------------
nikic wrote:
The transform hid a bug in the inline asm string. This was using the wrong register class.
https://github.com/llvm/llvm-project/pull/156617
More information about the llvm-commits
mailing list