[llvm] Treat ';' and '\n' as assembly instruction separators in     collectAsmInstrs (PR #149365)
    Rahman Lavaee via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Jul 18 10:09:56 PDT 2025
    
    
  
================
@@ -7,10 +7,9 @@ define ptr @foo(ptr %Ptr) {
   %Ptr.addr = alloca ptr, align 8
   store ptr %Ptr, ptr %Ptr.addr, align 8
 ; CHECK: movq    %rdi, -8(%rsp)
-  %1 = tail call ptr asm "mov $1, $0\0A\09lea $2, $0", "=r,p,*m,~{dirflag},~{fpsr},~{flags}"(ptr %Ptr, ptr elementtype(ptr) %Ptr.addr)
----------------
rlavaee wrote:
`\0A` is the newline character and `\09` is tab. So the tab will be trimmed.
https://github.com/llvm/llvm-project/pull/149365
    
    
More information about the llvm-commits
mailing list