https://bugs.llvm.org/show_bug.cgi?id=51623

            Bug ID: 51623
           Summary: [FastISel] Regression causing miscompile on inline asm
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: cameron.mcina...@nyu.edu
                CC: chad.ros...@gmail.com, htmldevelo...@gmail.com,
                    llvm-bugs@lists.llvm.org, paul.robin...@am.sony.com,
                    paul_robin...@playstation.sony.com

Created attachment 25193
  --> https://bugs.llvm.org/attachment.cgi?id=25193&action=edit
Reduced test case

The attached test case appears to miscompile after this commit:

> commit c161775decddcc86fbbfefd7485a5d0ef5842aec
> Author: Paul Robinson <paul.robin...@sony.com>
> Date: Mon Jan 11 08:32:36 2021 -0800
>
> [FastISel] Flush local value map on every instruction

This was introduced in the 12.x timeframe, but still occurs in main.

To reproduce:

llc -O0 test.ll

The expected assembly is:

        #APP
        movl    %eax, %eax
        addl    %ecx, %eax
        #NO_APP

The current miscompile shows:

        #APP
        movl    %eax, %ecx
        addl    %ecx, %ecx
        #NO_APP

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to