http://llvm.org/bugs/show_bug.cgi?id=18975

            Bug ID: 18975
           Summary: Missing Uses/Defs information for x86 short MOV
                    instructions
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 12152
  --> http://llvm.org/bugs/attachment.cgi?id=12152&action=edit
proposed patch

While using LLVM to determine register usage of a dissassembled binary I
noticed
that some MOVs to/from EAX are not listing EAX as an (implicit) used/defined
register.

I think this is the cause:
The shorter instructions for MOVs to/from (E)AX optimized by
SimplifyShortMoveForm (X86MCInstLower.cpp) are missing register Uses and Defs
information in X86InstrInfo.td.

I attached a small patch which achieves expected behaviour in my build, but I'm
not familiar with tablegen.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to